mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Put private videos under a specific subdirectory
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user