Ich bin ziemlich neu bei Firebase und etwas neu bei Express und es fällt mir schwer, den Authentifizierungsvorgang von Firebase zu verwenden.Authentifizieren von Social Login mit Firebase Auth und Express?
Ich habe diesen Weg, aber jedes Mal wenn ich auf die Schaltfläche, um die Strecke löst, bekomme ich diese Fehler 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.
Ich bin mir ziemlich sicher, dass Web-Speicher aktiviert ist, aber ich bin ziemlich unsicher, wie die location.protocol
zu beheben . Was mache ich falsch?
Hier ist die Route:
app.get('/auth/facebook', function(req, res) {
const provider = new firebase.auth.FacebookAuthProvider();
firebase.auth().signInWithPopup(provider)
.catch(err => console.log(err));
});
ist Ihre Plattform IOS oder Android oder keine? – turmuka
@turmuka weder, es ist eine Knoten-Express-App. – Zevoxa