Skip to content

Commit a313a86

Browse files
committed
update example with supported scope and adds link
1 parent bd81c5c commit a313a86

File tree

1 file changed

+3
-1
lines changed
  • src/pages/[platform]/build-a-backend/auth/concepts/external-identity-providers

1 file changed

+3
-1
lines changed

src/pages/[platform]/build-a-backend/auth/concepts/external-identity-providers/index.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ You need to now inform your external provider of the newly configured authentica
216216
</Block>
217217
</BlockSwitcher>
218218

219+
- [Learn more about using social identity providers with user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-social-idp.html)
220+
219221
### Customizing scopes for retrieving user data from external providers
220222

221223
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`.
@@ -230,7 +232,7 @@ export const auth = defineAuth({
230232
clientId: secret('LOGINWITHAMAZON_CLIENT_ID'),
231233
clientSecret: secret('LOGINWITHAMAZON_CLIENT_SECRET'),
232234
// highlight-next-line
233-
scopes: ['email']
235+
scopes: ['profile']
234236
},
235237
callbackUrls: [
236238
'http://localhost:3000/profile',

0 commit comments

Comments
 (0)