Authentication 将Firebase从2.x更新到3.x后,Firebase.auth().signInWithRedirect(';facebook';)不再工作
将Firebase从2.x更新到3.x后,Firebase.auth().signInWithRedirect(“facebook”)不再工作。Facebook身份验证过去工作得很好:你需要先到Facebook授权登录,然后再回到现在登录的Firebase web应用程序 这就是现在发生的事情:Authentication 将Firebase从2.x更新到3.x后,Firebase.auth().signInWithRedirect(';facebook';)不再工作,authentication,firebase,firebase-authentication,facebook-authentication,Authentication,Firebase,Firebase Authentication,Facebook Authentication,将Firebase从2.x更新到3.x后,Firebase.auth().signInWithRedirect(“facebook”)不再工作。Facebook身份验证过去工作得很好:你需要先到Facebook授权登录,然后再回到现在登录的Firebase web应用程序 这就是现在发生的事情: URL重定向到类似的内容 Chrome的主浏览器窗口显示 无法访问此网站 找不到project ID的服务器DNS地址 控制台显示 …iderId=facebook.com&redirec
- URL重定向到类似的内容
- Chrome的主浏览器窗口显示
- 控制台显示
有什么想法吗?呼叫签名已更改:
var facebook = new firebase.auth.FacebookAuthProvider();
facebook.addScope('user_birthday'); // optional
firebase.auth().signInWithRedirect(facebook);
有关更多详细信息,请参阅
编辑:此外,您可能初始化SDK时出错。您能告诉我firebase.initializeApp在您的应用程序中是什么样子的吗?对于延迟表示歉意。我实际上是直接使用Rebase而不是Firebase,所以我使用的命令是。我应该在问题中说明这一点,但从re-base的措辞来看,没有人回答。道歉。相应地,这是初始化代码。使用1.x版本它工作正常,同时将rebase更新为2.x和Firebase更新为3.x(显示代码更改)导致了问题。