Firebase 身份验证不适用于我的 freenom 域
Firebase authentecation not working on my freenom domain
我将 Reactjs 与 firebase SDK 一起使用,通过 google auth 进行身份验证,它在开发服务器 link 上工作正常,也在 link http://localhost:3000/ and also on firebase hosting link https://pro--student.web.app/ but when i access the website from the domain that i added to firebase hosting settings https://prostudent.ga 上工作身份验证不起作用,所以我很确定代码没问题问题只在域中的某个地方有人可以帮我解决这个问题吗?
这是您想要的验证码
auth.signInWithPopup(googleProvider)
.then((result) => {
// The signed-in user info.
var user = result.user.providerData[0];
store.dispatch({ type: actions.SIGNIN, payload: user });
})
.catch((error) => {
alert(error.message);
});
这是我的托管信息的图片https://i.stack.imgur.com/0mqWF.png
在 Firebase 托管部分的 Firebase Console, ensure that your new custom domain is included in the list of Authorized Domains in the Firebase Authentication section in addition to being listed in the Project Domains 中。
我将 Reactjs 与 firebase SDK 一起使用,通过 google auth 进行身份验证,它在开发服务器 link 上工作正常,也在 link http://localhost:3000/ and also on firebase hosting link https://pro--student.web.app/ but when i access the website from the domain that i added to firebase hosting settings https://prostudent.ga 上工作身份验证不起作用,所以我很确定代码没问题问题只在域中的某个地方有人可以帮我解决这个问题吗? 这是您想要的验证码
auth.signInWithPopup(googleProvider)
.then((result) => {
// The signed-in user info.
var user = result.user.providerData[0];
store.dispatch({ type: actions.SIGNIN, payload: user });
})
.catch((error) => {
alert(error.message);
});
这是我的托管信息的图片https://i.stack.imgur.com/0mqWF.png
在 Firebase 托管部分的 Firebase Console, ensure that your new custom domain is included in the list of Authorized Domains in the Firebase Authentication section in addition to being listed in the Project Domains 中。