diff --git a/GoogleSignIn/Sources/GIDSignIn.m b/GoogleSignIn/Sources/GIDSignIn.m index de7b6681..f1187ff1 100644 --- a/GoogleSignIn/Sources/GIDSignIn.m +++ b/GoogleSignIn/Sources/GIDSignIn.m @@ -829,7 +829,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;