DEV Community

Cover image for AWS Cognito ( Facebook log ). Why token doesn't have an email?
Jackson Kasi
Jackson Kasi Subscriber

Posted on

3

AWS Cognito ( Facebook log ). Why token doesn't have an email?

I tried google and Facebook login using AWS Cognito & Amplify.

Google login works fine.

But when I log in to Facebook, if I decode the token that comes, I don't get the email only.

But I think I did everything right.

Please help me if you have an answer to my question!

Thanks

Code:

Image description

Cognito:

Image description

response:

Image description

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️