我正在尝试使用Firebase创建登录/用户注册模块。 我使用的功能signInWithPopup(provider)在chrome上可以正常使用 但是在firefox上,不会出现弹出窗口,会打开一个新标签,仅此而已,无法进行连接/注册。
这是我的代码:
signInWithPopup(provider)
.then((result) => {
console.log(result);
const user = result.user;
this.setState({
user
});
window.location.href ="/HomeUser";
});
您有没有注意到这个问题?你有解决的办法吗?
谢谢