Using Firebase and React Native to authenticate users into my app.
One thing I have noticed is when trying to use facebook login however I am thrown this error:
This operation is not supported in the environment this application is running on. "location.protocol" must be http or https.
Not really sure how to solve it honestly
You must be using signInWithPopup/Redirect. This is only currently supported in a browser environment. You will need to use some native library (facebook/google) to retrieve the corresponding OAuth access token. Once you get that, you can call signInWithCredential to sign in the Firebase user:
firebase.auth().signInWithCredential(firebase.auth.FacebookAuthProvider.credential(fbAccessToken))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With