1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Provide express request to onLogout call

+ pluginInfo related changes
This commit is contained in:
Chocobozzz 2020-11-20 15:36:43 +01:00
parent 8f3ad70874
commit 74fd2643b4
8 changed files with 129 additions and 15 deletions

View file

@ -52,7 +52,7 @@ async function handleTokenRevocation (req: express.Request, res: express.Respons
const token = res.locals.oauth.token
res.locals.explicitLogout = true
await revokeToken(token)
const result = await revokeToken(token)
// FIXME: uncomment when https://github.com/oauthjs/node-oauth2-server/pull/289 is released
// oAuthServer.revoke(req, res, err => {
@ -68,7 +68,7 @@ async function handleTokenRevocation (req: express.Request, res: express.Respons
// }
// })
return res.json()
return res.json(result)
}
async function onExternalUserAuthenticated (options: {