function authenticate (req: express.Request, res: express.Response, next: express.NextFunction) {
oAuthServer.authenticate()(req, res, function (err) {
if (err) {
- logger.error('Cannot authenticate.', { error: err })
+ logger.error('Cannot authenticate.', err)
return res.sendStatus(500)
}