I had implemented the social login with google in my flutter application and it was working previously but nowadays, especially on Android platform the login in is stuck after selecting the account from list of google accounts. On iOS it’s totally worked fine.
Here is my small code from where I got an issue
Future<Credentials> signIn() async {
try {
Credentials response =
await auth0.webAuthentication(scheme: dotenv.env["SCHEME"]).login(
parameters: {'connection': connection.getName},
audience: dotenv.env["AUDIENCE"].toString(),
);
if (kDebugMode) {
print(" Testing mode :-" +response.accessToken);
}
return response;
} catch (e) {
if (!kReleaseMode) {
debugPrint("Social login error >>>>" + e.toString());
}
throw Exception();
}
}
Help me to resolve this.