meateam / OSpike

An OAuth2 authorization server supporting OpenID Connect
MIT License
2 stars 0 forks source link

Refactor error passing to error handler in oauth2.controller.ts #35

Closed shakedmanes closed 6 years ago

shakedmanes commented 6 years ago

Todo:

Refactor error passing to error handler in oauth2.controller.ts - instead passing the error to done(err), just throw err.

shakedmanes commented 6 years ago

Conclusion:

There's no need for that refactor cause the functions in oauth2.controller.ts are must pass the error in done function cause without it, the error will not be passed to the error handler.