X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Fauth%2Foauth.ts;h=497773536e126857f9e7b55406a711b1123f395e;hb=63a3d336f6cc9a293a07fdc12d6bdfb86cfc2fd5;hp=5b6130d567301d802ea49292b508911e38ad4395;hpb=903353d67a8d0fdda8465ed6c57b77a9a5afbe92;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/auth/oauth.ts b/server/lib/auth/oauth.ts index 5b6130d56..497773536 100644 --- a/server/lib/auth/oauth.ts +++ b/server/lib/auth/oauth.ts @@ -1,4 +1,4 @@ -import * as express from 'express' +import express from 'express' import { InvalidClientError, InvalidGrantError, @@ -81,7 +81,7 @@ async function handleOAuthToken (req: express.Request, options: { refreshTokenAu }) } -async function handleOAuthAuthenticate ( +function handleOAuthAuthenticate ( req: express.Request, res: express.Response, authenticateInQuery = false