简体   繁体   English

Firebase SSO Auth无法在App Browser中的Facebook中运行

[英]Firebase SSO Auth not working in Facebook In App Browser

We are using Firebase Auth and provide Google and Facebook login on our site. 我们正在使用Firebase Auth,并在我们的网站上提供Google和Facebook登录。

We are a publisher and most of our stories are published as Instant Articles. 我们是出版商,我们的大多数故事都作为即时文章发表。 However, some articles are locked and requires subscribers to login to read the full content. 但是,某些文章已被锁定,需要订阅者登录才能阅读全部内容。

This works in a normal browser, but when opening a non-IA link in FB In App Browser, the login popup appears but remains blank, and does not close. 这在普通浏览器中有效,但是在“应用程序浏览器”中的FB中打开非IA链接时,将显示登录弹出窗口,但保持空白,并且不会关闭。

Users are not signed in and can't login. 用户未登录,无法登录。

We are using: 我们正在使用:

firebase.auth().signInWithPopup(provider)

I was wondering if there are any ways besides the signInWithPopup that can help us achieve this? 我想知道signInWithPopup之外是否还有其他方法可以帮助我们实现这一目标?

Thx. 谢谢。

As @bojeil mentioned, 正如@bojeil所说,

use firebase.auth().signInWithRedirect(provider) instead. 请改用firebase.auth()。signInWithRedirect(provider)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM