refs #6930 feat: return multimediaToken when login
This commit is contained in:
parent
e6d789ea13
commit
a078de9521
|
@ -167,7 +167,11 @@ module.exports = function(Self) {
|
|||
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) {
|
||||
|
|
Loading…
Reference in New Issue