Put private videos under a specific subdirectory

This commit is contained in:
Chocobozzz
2022-10-12 16:09:02 +02:00
committed by Chocobozzz
parent 38a3ccc7f8
commit 3545e72c68
105 changed files with 2929 additions and 1308 deletions

View File

@@ -95,14 +95,9 @@ async function handleOAuthToken (req: express.Request, options: { refreshTokenAu
function handleOAuthAuthenticate (
req: express.Request,
res: express.Response,
authenticateInQuery = false
res: express.Response
) {
const options = authenticateInQuery
? { allowBearerTokensInQueryString: true }
: {}
return oAuthServer.authenticate(new Request(req), new Response(res), options)
return oAuthServer.authenticate(new Request(req), new Response(res))
}
export {