]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/auth.ts
Merge branch 'artonge/PeerTube-feature/logoutUrlForAuthProviders' into 'develop'
[github/Chocobozzz/PeerTube.git] / server / lib / auth.ts
index 3f8e186334bef7d6b01eb79b6a015ab6cad7bfe7..acf0da18a6740e20a0567a1394d32a78e95095cd 100644 (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: {