我对Firebase颇为陌生,对Express也稍微有点新,我很难尝试使用Firebase提供的身份验证流程。使用Firebase身份验证和Express身份验证社交登录?
我有这条路线,但每次我点击触发路由的按钮,我得到这个错误This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.
我敢肯定,网络存储已启用,但我不是很确定如何解决location.protocol
。我究竟做错了什么?
,路线如下:
app.get('/auth/facebook', function(req, res) {
const provider = new firebase.auth.FacebookAuthProvider();
firebase.auth().signInWithPopup(provider)
.catch(err => console.log(err));
});
是你的平板IOS或Android或两者都不? – turmuka
@turmuka既不是,它是一个节点快车应用程序。 – Zevoxa