From cb84c6860a8def90986346dd624082b70e157e08 Mon Sep 17 00:00:00 2001 From: Roman Melnyk Date: Mon, 2 Sep 2024 17:22:39 +0300 Subject: [PATCH] #471 Proper user has canceled login error code. --- GoogleSignIn/Sources/GIDSignIn.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GoogleSignIn/Sources/GIDSignIn.m b/GoogleSignIn/Sources/GIDSignIn.m index 0f16caa2..adb3828f 100644 --- a/GoogleSignIn/Sources/GIDSignIn.m +++ b/GoogleSignIn/Sources/GIDSignIn.m @@ -803,7 +803,8 @@ - (void)processAuthorizationResponse:(OIDAuthorizationResponse *)authorizationRe } else { NSString *errorString = [error localizedDescription]; GIDSignInErrorCode errorCode = kGIDSignInErrorCodeUnknown; - if (error.code == OIDErrorCodeUserCanceledAuthorizationFlow) { + if (error.code == OIDErrorCodeUserCanceledAuthorizationFlow || + error.code == OIDErrorCodeProgramCanceledAuthorizationFlow) { // The user has canceled the flow at the iOS modal dialog. errorString = kUserCanceledError; errorCode = kGIDSignInErrorCodeCanceled;