googleLogin method
Implementation
Future googleLogin() async {
UserCredential? google_login_result;
GoogleAuthProvider googleProvider = GoogleAuthProvider();
google_login_result =
await _read(authProvider).signInWithPopup(googleProvider);
final isFirstLogin = google_login_result.additionalUserInfo!.isNewUser;
if (isFirstLogin) {
if (kDebugMode) {
print('FirebasePlus : This is the first login');
}
return 0;
} else {
if (kDebugMode) {
print('FirebasePlus : This is the second and subsequent logins');
}
return 1;
}
}