-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Let's say we want users to sign in into our app. There are 2 ways:
1.) Signup, and login (this will create an account in User Pool)
2.) Facebook login (user will just login to his facebook account)
Now, 1.) works fine, I'm able to have users signup and login. I am having problem in 2.). I was able to get the token from facebook (I am able to integrate facebook login button in my react native app)... Now after we get the token,, I want my users to use this facebook login and just continue using the app.
How do we achieve this? Are we supposed to create a new user in UserPool programatically if users login via facebook? Or we dont have to create the account manually (I assume that once the user logins using his facebook account, the next time he will use the app, he will be remembered)?
My point of confusion is, there is no cognitoUser if we are using federated identities or facebook. Please help me clear this confusion and what would be the best thing to proceed for number 2.