我阅读了Convert an anonymous account to a permanent account,并使用以下命令查看: auth.currentUser.linkWithCredential我运行了一些测试,发现使用linkWithPopup会返回错误auth/credential-already-in-use,如果该帐户存在,那么我必须使用signInWithCredential。在阅读有关linkWithCredential的文章时,我不知道如果谷歌帐户已经在Firebase上使用,该怎么办。我不认为li
如何使用firebase linkWithCredential?我在试着把电话号码和当前的firebase用户联系起来。我的问题是linkWithCredentials有一个The method 'linkWithCredential' isn't defined for the type 'Function'错误,这是因为我的FirebaseAuth.instance.currentUser.linkWithCredential(phoneCredent
使用Firebase for web,我可以成功地创建匿名用户。我还可以创建一个新的电子邮件/密码用户。但是,当尝试将匿名用户转换为电子邮件/密码用户时,我收到错误:User can only be linked to one identity for the given provider.这是帐户链接代码。匿名用户已登录。
return firebase.auth().createUserWithEmailAndPassword(email, passwor