Closed shakedmanes closed 6 years ago
Refactor error passing to error handler in oauth2.controller.ts - instead passing the error to done(err), just throw err.
oauth2.controller.ts
done(err)
throw err
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.
done
Todo:
Refactor error passing to error handler in
oauth2.controller.ts
- instead passing the error todone(err)
, justthrow err
.