AWS Cognito with Facebook and Google: Unique IdentityId?

In my web application, I want to allow users to log in using 2 possible providers (Facebook, Google) and retrieve credentials using AWS Cognito.

From what I understand, if a user ( john@domain.com ) logs into his Facebook account, Cognito IdentityId will not be the same as if he logged in using his Google account.

Assuming the user uses the same email address ( john@domain.com ) to log in to his Facebook and Google account , how can I make sure that this user has a unique, unique IdentityId in Cognito ?

I would not want the user to have 2 different IdentityId. It would be nice if I could associate john@domain.com with one IdentityId.

+4
source share
1 answer

Cognito is not aware of the email with which the account was registered. If the same user authenticates on two different devices using facebook on one and google on the other, he will give two different identifiers.

, . facebook , A. A google, Cognito, Cognito , , .

, Facebook Google , Cognito - .

+1

Source: https://habr.com/ru/post/1624613/


All Articles