From 97aeb3cc46c2e03c3187accd7c4561209be8be89 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 12 Mar 2021 17:19:02 +0100 Subject: Fix external on logout hook --- server/controllers/api/users/token.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/controllers/api/users') diff --git a/server/controllers/api/users/token.ts b/server/controllers/api/users/token.ts index 3eae28b34..694bb0a92 100644 --- a/server/controllers/api/users/token.ts +++ b/server/controllers/api/users/token.ts @@ -88,7 +88,7 @@ async function handleToken (req: express.Request, res: express.Response, next: e async function handleTokenRevocation (req: express.Request, res: express.Response) { const token = res.locals.oauth.token - const result = await revokeToken(token, true) + const result = await revokeToken(token, { req, explicitLogout: true }) return res.json(result) } -- cgit v1.2.3