From 3f09bbea13fd8585bb81df4b88dd024c4a926e31 Mon Sep 17 00:00:00 2001 From: MarioSimou Date: Wed, 7 Jun 2023 20:17:10 +0300 Subject: [PATCH] feat: include email scope when instantiating auth0 --- src/index.jsx | 2 +- src/types/solid-start.d.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.jsx b/src/index.jsx index 435a970..d340c97 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -28,7 +28,7 @@ export function Auth0(props) { const [userId, setUserId] = createSignal('') const [organization, setOrganization] = createSignal() - const scopes = ['openid', 'profile'] + const scopes = ['openid', 'profile', 'email'] if (import.meta.env.VITE_AUTH0_OFFLINE_ACCESS === 'true') { scopes.push('offline_access') } diff --git a/src/types/solid-start.d.ts b/src/types/solid-start.d.ts index ffea34d..9eb57e6 100644 --- a/src/types/solid-start.d.ts +++ b/src/types/solid-start.d.ts @@ -8,6 +8,8 @@ declare module 'solid-start/session/sessions' { picture: string updated_at: string org_id: string + email: string + email_verified: boolean } /*