Skip to content

Commit 027db73

Browse files
Merge pull request #18 from MarioSimou/main
feat: include email scope when instantiating auth0
2 parents efa63c5 + 3f09bbe commit 027db73

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function Auth0(props) {
2828
const [userId, setUserId] = createSignal('')
2929
const [organization, setOrganization] = createSignal()
3030

31-
const scopes = ['openid', 'profile']
31+
const scopes = ['openid', 'profile', 'email']
3232
if (import.meta.env.VITE_AUTH0_OFFLINE_ACCESS === 'true') {
3333
scopes.push('offline_access')
3434
}

src/types/solid-start.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ declare module 'solid-start/session/sessions' {
88
picture: string
99
updated_at: string
1010
org_id: string
11+
email: string
12+
email_verified: boolean
1113
}
1214

1315
/*

0 commit comments

Comments
 (0)