refs #6930 feat: return multimediaToken when login

This commit is contained in:
Javier Segarra 2024-02-26 06:51:19 +01:00
parent e6d789ea13
commit a078de9521
1 changed files with 5 additions and 1 deletions

View File

@ -167,7 +167,11 @@ module.exports = function(Self) {
console.warn(err); console.warn(err);
} }
return {token: token.id, ttl: token.ttl}; const multimediaToken = await token.user().accessTokens.create({
scopes: ['read:multimedia']
});
return {token: token.id, ttl: token.ttl, multimediaToken};
}; };
Self.userUses = function(user) { Self.userUses = function(user) {