身份验证:有一种方法可以访问error.userInfo [FIRAuthErrorUserInfoUpdatedCredentialKey]?

时间:2020-04-28 05:17:17

标签: react-native-firebase

我在与匿名用户一起使用Apple登录时遇到麻烦。

  1. 带苹果登录名的signInWithCredential
  2. 注销
  3. 使用匿名用户登录
  4. 使用苹果证书尝试linkWithCredential;失败(预期)
  5. 使用相同的凭据尝试signInWithCredential;失败(意外)

第5步失败的原因是因为Apple登录两次无法使用相同的凭据。此firebase IOS thread

中讨论了该问题

该线程的解决方案是使用

中提供的其他凭据登录

error.userInfo[FIRAuthErrorUserInfoUpdatedCredentialKey]

但是,我不知道如何在react-native-firebase / auth中访问它

有人可以建议使用当前的API是否可以做到这一点?

0 个答案:

没有答案