diff options
Diffstat (limited to 'server/middlewares/oauth.ts')
-rw-r--r-- | server/middlewares/oauth.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/oauth.ts b/server/middlewares/oauth.ts index a6f28dd5b..5233b66bd 100644 --- a/server/middlewares/oauth.ts +++ b/server/middlewares/oauth.ts | |||
@@ -39,7 +39,7 @@ function token (req: express.Request, res: express.Response, next: express.NextF | |||
39 | if (err) { | 39 | if (err) { |
40 | return res.status(err.status) | 40 | return res.status(err.status) |
41 | .json({ | 41 | .json({ |
42 | error: 'Authentication failed.', | 42 | error: err.message, |
43 | code: err.name | 43 | code: err.name |
44 | }) | 44 | }) |
45 | .end() | 45 | .end() |