From dbdf5867550bfba1e537581f20610df21f04b971 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:51:10 -0400 Subject: [PATCH] Include permissions claim in jwt --- functions/api/auth/mobile/token.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/functions/api/auth/mobile/token.ts b/functions/api/auth/mobile/token.ts index 0e8c4d1..bc9874f 100644 --- a/functions/api/auth/mobile/token.ts +++ b/functions/api/auth/mobile/token.ts @@ -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, }),