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:
parent
93293ca788
commit
868314e8bf
7 changed files with 64 additions and 31 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue