Skip to content

Commit

Permalink
feat: include email scope when instantiating auth0
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioSimou committed Jun 7, 2023
1 parent efa63c5 commit 3f09bbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
Expand Down
2 changes: 2 additions & 0 deletions src/types/solid-start.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ declare module 'solid-start/session/sessions' {
picture: string
updated_at: string
org_id: string
email: string
email_verified: boolean
}

/*
Expand Down

0 comments on commit 3f09bbe

Please sign in to comment.