Hello,
I’m trying to sign in via Google. I saw it in the SDK documentation and implemented it in Flutter.
PS. I have already looked at the How to setup OAuth2 Google in Parse but without success, because I can redeem the parameters through the GoogleSignIn package.
class OAuthLogin {
final GoogleSignIn _googleSignIn = GoogleSignIn( scopes: ['email', 'https://www.googleapis.com/auth/contacts.readonly'] );
signInGoogle() async {
GoogleSignInAccount account = await _googleSignIn.signIn();
GoogleSignInAuthentication authentication = await account.authentication;
await ParseUser.loginWith(
'google',
google(_googleSignIn.currentUser.id,
authentication.accessToken,
authentication.idToken));
}
}
Authentication with Google works perfectly I get the User ID on Google, the Access Token and the idToken perfectly, however when trying to log in to Parse the following error appears:
Do I need any further configuration with the Parse SDK Flutter?