1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Add ability to get user from file token

This commit is contained in:
Chocobozzz 2022-12-20 09:15:49 +01:00
parent 93293ca788
commit 868314e8bf
No known key found for this signature in database
GPG key ID: 583A612D890159BE
7 changed files with 64 additions and 31 deletions

View file

@ -22,7 +22,7 @@ export {
function generateToken (req: express.Request, res: express.Response) {
const video = res.locals.onlyVideo
const { token, expires } = VideoTokensManager.Instance.create(video.uuid)
const { token, expires } = VideoTokensManager.Instance.create({ videoUUID: video.uuid, user: res.locals.oauth.token.User })
return res.json({
files: {