0 votes
1 view
in AWS by (5.6k points)
I have AWS Cognito with Google identity provider where users can log in but it only seems to get the user's email, and user name in my auth callback and Cognito login hooks. So is there any way to get users first name & last name?

1 Answer

0 votes
by (12.4k points)
edited by

You can, In Cognito, Go to Federation then Attribute Mapping -> Select Google from the tabs -> Check given_name and map it to Given Name, Check family_name and map it to Family Name. Rather than the Access Token, parse Identity Token from Cognito.

Learn more about AWS by going through AWS Online training and master this technology.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...