Firebase auth with electronjs


#1

I was create an application with electronjs.
It just load local file:

mainWindow.loadURL(url.format({
        pathname: path.join(__dirname, 'vuestart/dist/index.html'),
        protocol: 'file:',
        slashes: true
    }))

And index file has authen with firebase using google sign-in.

loginWithGoogle() {
                var provider = new firebase.auth.GoogleAuthProvider();
                provider.addScope('user_birthday');
                firebase.auth().signIn(provider).then(function(result) {
                    console.log(result);
                }).catch(function(error) {
                    console.log(error);
                });
            }

I got an error:
auth/operation-not-supported-in-this-environment
This operation is not supported in the environment…chrome-extension and web storage must be enabled.

Please help me. thanks all!!!