Error 10 on google auth with firebase


#1

When i’m trying to login with google alert gives Error:10
my login function is
loginUser(): void {
this.googlePlus.login({
'webClientId': 'my id',
'offline': true
}).then( res => {
firebase.auth().signInWithCredential(firebase.auth.GoogleAuthProvider.credential(res.idToken))
.then( success => {
this.navCtrl.setRoot(MainHomePage)
})
.catch( error => alert("Firebase failure: " + JSON.stringify(error)));
}).catch(err => alert("Error: "+ JSON.stringify(err)));
}


#2

There’s a direct Firebase function to log in with Google. I know that works. Is there a reason you need to use this two-step process?


#3

Earlier google auth with the same function was working fine but didn’t know what happened today.


#4

I am facing the same problem here, did you manage to solve this?