Skip to content

Commit 4a17a8d

Browse files
authored
#471 Proper user has canceled login error code. (#472)
1 parent b34f5a9 commit 4a17a8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GoogleSignIn/Sources/GIDSignIn.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,8 @@ - (void)processAuthorizationResponse:(OIDAuthorizationResponse *)authorizationRe
829829
} else {
830830
NSString *errorString = [error localizedDescription];
831831
GIDSignInErrorCode errorCode = kGIDSignInErrorCodeUnknown;
832-
if (error.code == OIDErrorCodeUserCanceledAuthorizationFlow) {
832+
if (error.code == OIDErrorCodeUserCanceledAuthorizationFlow ||
833+
error.code == OIDErrorCodeProgramCanceledAuthorizationFlow) {
833834
// The user has canceled the flow at the iOS modal dialog.
834835
errorString = kUserCanceledError;
835836
errorCode = kGIDSignInErrorCodeCanceled;

0 commit comments

Comments
 (0)