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:
parent
8f3ad70874
commit
74fd2643b4
8 changed files with 129 additions and 15 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue