Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Include permissions claim in jwt
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent f227906 commit dbdf586
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions functions/api/auth/mobile/token.ts
Expand Up @@ -19,6 +19,7 @@ export async function onRequestGet(context: RequestContext) {
iss: "https://carcrushers.cc/auth/mobile/token",
jti: sessionCookie.replace("_s=", ""),
name: currentUser.username,
permissions: currentUser.permissions,
picture: currentUser.avatar ?? "https://carcrushers.cc/files/logo192.png",
sub: currentUser.id,
}),
Expand Down

0 comments on commit dbdf586

Please sign in to comment.