Firebase Convert Anonymous User Account to Permanent Account Error

前端 未结 2 1680
后悔当初
后悔当初 2021-02-18 19:22

Using Firebase for web I can successfully create an anonymous user. I can also create a new email/password user. But when trying to convert an anonymous user to a email/password

2条回答
  •  南笙
    南笙 (楼主)
    2021-02-18 19:58

    After you log in as an Anonymous user, run this code to raise Popup and connect your anon user wit some OAUTH provider

    const provider = new firebase.auth.FacebookAuthProvider()
    firebase.auth().currentUser.linkWithPopup(provider)
    console.log(provider)
    

提交回复
热议问题