Skip to content

Commit

Permalink
update example with supported scope and adds link
Browse files Browse the repository at this point in the history
  • Loading branch information
ykethan committed Jan 22, 2025
1 parent bd81c5c commit a313a86
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ You need to now inform your external provider of the newly configured authentica
</Block>
</BlockSwitcher>

- [Learn more about using social identity providers with user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-social-idp.html)

### Customizing scopes for retrieving user data from external providers

You can determine the pieces of data you want to retrieve from each external provider when setting them up in the `amplify/auth/resource.ts` file using `scopes`.
Expand All @@ -230,7 +232,7 @@ export const auth = defineAuth({
clientId: secret('LOGINWITHAMAZON_CLIENT_ID'),
clientSecret: secret('LOGINWITHAMAZON_CLIENT_SECRET'),
// highlight-next-line
scopes: ['email']
scopes: ['profile']
},
callbackUrls: [
'http://localhost:3000/profile',
Expand Down

0 comments on commit a313a86

Please sign in to comment.