I'm creating a login and signup page on Ionic 4 and I'm trying to authenticate with google plus and then send the auth data to my rails application (backend).
But when I try to login, I get an error code '10', that according to google:
The application is misconfigured. This error is not recoverable and will be treated as fatal. The developer should look at the logs after this to determine more actionable information.
But I can't find where is the error.
So what I did untill now was:
- Create firebase android project with my package name
- Create a digital SHA-1 and add to the project
- Add cordova google plus plugin
login.ts
async doGoogleLogin(){
this.googlePlus.login({
'scopes': '',
'webClientId': 'myWebClientId.apps.googleusercontent.com',
'offline': true
}).then(user =>{
this.saveGoogleUser(user);
this.router.navigate(["/home"]);
}, err =>{
this.presentAlert("Error Console", err);
});
}
When I click on login button, it's open the google page, but when I click on an account, it closes the page and my alert shows ('10').
I'm stucked on it :(