I develop a react-native (expo) mobile app and try to sign in with a google account to firebase, but I get an error:

> 
> "auth/operation-not-supported-in-this-enviroment. This operation is not supported in the enviroment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled"
> 
> 
> 

Code:

```
loginGoogle() {
    var provider = new firebase.auth.GoogleAuthProvider();
    provider.addScope('profile');
    provider.addScope('email');
    firebase.auth().signInWithPopup(provider).then(function(result) {
        var token = result.credential.accessToken;
        var user = result.user;
        return true;
    }).catch(function(error) {
        alert(error.code + '\n' +
        error.message + '\n' +
        error.email + '\n' +
        error.credential);
        return false;
    });
}

```