diff options
author | Chocobozzz <chocobozzz@framasoft.org> | 2020-11-20 15:36:43 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@framasoft.org> | 2020-11-20 15:36:43 +0100 |
commit | 74fd2643b43057c25558b3da79398efe104e2660 (patch) | |
tree | 4fd7dd84775780eed82bc4b3caaa328c3526a14c /server/lib/auth.ts | |
parent | 8f3ad70874f8769f5340632754dc2ca7f4c82733 (diff) | |
download | PeerTube-74fd2643b43057c25558b3da79398efe104e2660.tar.gz PeerTube-74fd2643b43057c25558b3da79398efe104e2660.tar.zst PeerTube-74fd2643b43057c25558b3da79398efe104e2660.zip |
Provide express request to onLogout call
+ pluginInfo related changes
Diffstat (limited to 'server/lib/auth.ts')
-rw-r--r-- | server/lib/auth.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/auth.ts b/server/lib/auth.ts index 3f8e18633..acf0da18a 100644 --- a/server/lib/auth.ts +++ b/server/lib/auth.ts | |||
@@ -52,7 +52,7 @@ async function handleTokenRevocation (req: express.Request, res: express.Respons | |||
52 | const token = res.locals.oauth.token | 52 | const token = res.locals.oauth.token |
53 | 53 | ||
54 | res.locals.explicitLogout = true | 54 | res.locals.explicitLogout = true |
55 | await revokeToken(token) | 55 | const result = await revokeToken(token) |
56 | 56 | ||
57 | // FIXME: uncomment when https://github.com/oauthjs/node-oauth2-server/pull/289 is released | 57 | // FIXME: uncomment when https://github.com/oauthjs/node-oauth2-server/pull/289 is released |
58 | // oAuthServer.revoke(req, res, err => { | 58 | // oAuthServer.revoke(req, res, err => { |
@@ -68,7 +68,7 @@ async function handleTokenRevocation (req: express.Request, res: express.Respons | |||
68 | // } | 68 | // } |
69 | // }) | 69 | // }) |
70 | 70 | ||
71 | return res.json() | 71 | return res.json(result) |
72 | } | 72 | } |
73 | 73 | ||
74 | async function onExternalUserAuthenticated (options: { | 74 | async function onExternalUserAuthenticated (options: { |