如何使用 FB 和 Google 登录在 Cognito 用户池中维护相同的配置文件?

How to maintain the same profile in Cognito User Pool using both FB and Google Sign-in?

我在 AWS Cognito 中使用 Facebook 登录注册。创建了一个唯一的身份 ID。 是否有任何可能性或解决方法 - 我们可以在哪里切换登录 Google 登录保持身份 ID 相同?以便保持相同的用户配置文件。

提前致谢。

如果您 link 用户,您将拥有两个用户的相同 ID,在 Cognito 中,两个用户都将存在,但他们将具有相同的 ID。您可以 link 他们在预注册 lambda

https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminLinkProviderForUser.html