From effb3b8e43c4584d170b519def2eb81d81eb1cb2 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:51:10 -0400 Subject: [PATCH] Include picture 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 0bad673..0e8c4d1 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, + picture: currentUser.avatar ?? "https://carcrushers.cc/files/logo192.png", sub: currentUser.id, }), )