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 ffc1b7ca9..47799153a 100644 --- a/server/middlewares/oauth.ts +++ b/server/middlewares/oauth.ts | |||
@@ -49,7 +49,7 @@ function authenticateSocket (socket: Socket, next: (err?: any) => void) { | |||
49 | } | 49 | } |
50 | 50 | ||
51 | function authenticatePromiseIfNeeded (req: express.Request, res: express.Response, authenticateInQuery = false) { | 51 | function authenticatePromiseIfNeeded (req: express.Request, res: express.Response, authenticateInQuery = false) { |
52 | return new Promise(resolve => { | 52 | return new Promise<void>(resolve => { |
53 | // Already authenticated? (or tried to) | 53 | // Already authenticated? (or tried to) |
54 | if (res.locals.oauth?.token.User) return resolve() | 54 | if (res.locals.oauth?.token.User) return resolve() |
55 | 55 | ||