void _onSignInWithHandle() async {
var result = await GoogleOneTapSignIn.handleSignIn(webClientId: _webClientId);
if (result.isTemporaryBlock) {
// TODO: Tell your users about this status
print("Temporary BLOCK");
}
if (result.isCanceled) {
// TODO: Tell your users about this status
print("Canceled");
}
if (result.isFail) {
// TODO: Tell your users about this status
}
if (result.isOk) {
// TODO: Whatever you do with [SignInResult] data
print("OK");
print("Id Token : ${result.data?.idToken ?? "-"}");
print("Email : ${result.data?.username ?? "-"}");
}
}