Reputation: 727
I'm creating an application using JS in which I have to use amazon Cognito for Signup and login. As my basic understanding we are using user pool to create our data dictionary, but if we want to login with social media we use Identity Providers.
As my requirement I have to use both, How I have to Implement this? I have to create two apps in cognito or I can add in user pool ??
please share a code snippet if exist
Upvotes: 1
Views: 566
Reputation: 6371
You can sign-in through a third-party provider using only User Pools. As a rule of thumb, use User Pools when you want to authorize something via JWT and Federated Identities when you want to access AWS services directly (more info here)
Upvotes: 0