This operation is not supported in the environment in which this application is running. "location.protocol" must be http or https

Using Firebase and React Native to authenticate users in my application.

One thing I noticed is trying to use facebook login, but I selected this error:

This operation is not supported in the environment in which this application is running. "location.protocol" must be http or https.

Not quite sure how to solve this honestly

+4
source share
1 answer

signInWithPopup/Redirect. . (facebook/google), OAuth. signInWithCredential Firebase:

firebase.auth().signInWithCredential(firebase.auth.FacebookAuthProvider.credential(fbAccessToken))
+10

Source: https://habr.com/ru/post/1648323/


All Articles