I created a OAuth consent screen and Credentials in console.cloud.google.com
This is my flutter code
GoogleSignIn _googleSignIn = GoogleSignIn(
clientId: 'xxxx from console.cloud.google.com',
scopes: [
'https://www.googleapis.com/auth/userinfo.email',
'https://www.googleapis.com/auth/userinfo.profile'
]
);
and
Future<void> _handleSignIn() async {
try {
await _googleSignIn.signIn();
print('ok');
} catch (error) {
print(error);
}
}
but I got this error:
PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null)
thanks for your help!!