Explore Courses Blog Tutorials Interview Questions
0 votes
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.

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

Browse Categories