Skip to content

Commit

Permalink
chore: update documentation examples
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-vd committed Dec 6, 2024
1 parent ed3ca68 commit 61bb385
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ const azureStrategy = new AzureStrategy(
},
async ({ profile }) => {
// Handle user verification here
return { id: profile.id, email: profile.emails[0].value };
let user = await getUser(tokens, request);
return { id: user.id, email: user.email };
}
);
```
Expand All @@ -68,7 +69,8 @@ const auth0Strategy = new Auth0Strategy(
},
async ({ profile }) => {
// Handle user verification here
return { id: profile.id, email: profile.emails[0].value };
let user = await getUser(tokens, request);
return { id: user.id, email: user.email };
}
);
```
Expand Down

0 comments on commit 61bb385

Please sign in to comment.