mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 22:11:09 +03:00
Updated token generation to use plans on member
no-issue This is to remove duplication of logic, that now lives solely in the getMember method
This commit is contained in:
parent
239237f402
commit
79f31b7323
@ -84,7 +84,7 @@ module.exports = function MembersApi({
|
||||
return users.get({id: signedin})
|
||||
.then(member => encodeToken({
|
||||
sub: member.id,
|
||||
plans: member.subscriptions.map(sub => sub.plan),
|
||||
plans: member.plans,
|
||||
exp: tokenLength,
|
||||
aud: audience
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user