diff options
author | Chocobozzz <me@florianbigard.com> | 2021-03-12 17:19:02 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-03-24 18:18:41 +0100 |
commit | 97aeb3cc46c2e03c3187accd7c4561209be8be89 (patch) | |
tree | 079921eabd87bc14c2eaad42e4eda4a68a208102 /server/controllers | |
parent | c2bd7a6fcff652b149b24a642314c88e56a07f48 (diff) | |
download | PeerTube-97aeb3cc46c2e03c3187accd7c4561209be8be89.tar.gz PeerTube-97aeb3cc46c2e03c3187accd7c4561209be8be89.tar.zst PeerTube-97aeb3cc46c2e03c3187accd7c4561209be8be89.zip |
Fix external on logout hook
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/users/token.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
88 | async function handleTokenRevocation (req: express.Request, res: express.Response) { | 88 | async function handleTokenRevocation (req: express.Request, res: express.Response) { |
89 | const token = res.locals.oauth.token | 89 | const token = res.locals.oauth.token |
90 | 90 | ||
91 | const result = await revokeToken(token, true) | 91 | const result = await revokeToken(token, { req, explicitLogout: true }) |
92 | 92 | ||
93 | return res.json(result) | 93 | return res.json(result) |
94 | } | 94 | } |