From fdc5f46207de7e9fab6a955ef9749a8e2b527fd5 Mon Sep 17 00:00:00 2001 From: Arno V Date: Sun, 1 Sep 2024 15:52:05 -0400 Subject: [PATCH] feat: adding email key to idToken --- packages/auth-common/src/components/constants.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/auth-common/src/components/constants.ts b/packages/auth-common/src/components/constants.ts index 2da3b85..bb59924 100644 --- a/packages/auth-common/src/components/constants.ts +++ b/packages/auth-common/src/components/constants.ts @@ -19,9 +19,11 @@ export const JWT = { ALG: "RS256", USER_ID_KEY: "sub", + USERNAME_KEY: "username", + EMAIL_KEY: "email", + TOKEN_ID_KEY: "__raw", NONCE_KEY: "_nonce", - USERNAME_KEY: "username", AUTH_TYPE_KEY: "auth_type", EXPIRES_AT_KEY: "exp", CREATED_AT_KEY: "iat",