diff options
Diffstat (limited to 'server/lib/auth/oauth.ts')
-rw-r--r-- | server/lib/auth/oauth.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/server/lib/auth/oauth.ts b/server/lib/auth/oauth.ts index 35b05ec5a..bc0d4301f 100644 --- a/server/lib/auth/oauth.ts +++ b/server/lib/auth/oauth.ts | |||
@@ -95,14 +95,9 @@ async function handleOAuthToken (req: express.Request, options: { refreshTokenAu | |||
95 | 95 | ||
96 | function handleOAuthAuthenticate ( | 96 | function handleOAuthAuthenticate ( |
97 | req: express.Request, | 97 | req: express.Request, |
98 | res: express.Response, | 98 | res: express.Response |
99 | authenticateInQuery = false | ||
100 | ) { | 99 | ) { |
101 | const options = authenticateInQuery | 100 | return oAuthServer.authenticate(new Request(req), new Response(res)) |
102 | ? { allowBearerTokensInQueryString: true } | ||
103 | : {} | ||
104 | |||
105 | return oAuthServer.authenticate(new Request(req), new Response(res), options) | ||
106 | } | 101 | } |
107 | 102 | ||
108 | export { | 103 | export { |