Browse Source

#471 Proper user has canceled login error code. (#472)

Romick2005 1 year ago
parent
commit
4a17a8da24
1 changed files with 2 additions and 1 deletions
  1. 2 1
      GoogleSignIn/Sources/GIDSignIn.m

+ 2 - 1
GoogleSignIn/Sources/GIDSignIn.m

@@ -829,7 +829,8 @@ static NSString *const kConfigOpenIDRealmKey = @"GIDOpenIDRealm";
   } 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;