You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Invalid error code have been thrown: kGIDSignInErrorCodeUnknown, but should be kGIDSignInErrorCodeCanceled #471
Describe the bug
If user cancel google signIn process at latest step (confirming two previous steps), the lib throws error with OIDErrorCodeProgramCanceledAuthorizationFlow that is handled as kGIDSignInErrorCodeUnknown, but it should be the same as OIDErrorCodeUserCanceledAuthorizationFlow has: kGIDSignInErrorCodeCanceled (The user canceled the sign-in flow.)
Select google account and press 'Continue' (step 2)
On the last step select 'Cancel'.
See 'Unknown error in google sign in. (kGIDSignInErrorCodeUnknown access_denied)' error, but it should be 'The user canceled the sign-in flow. (kGIDSignInErrorCodeCanceled)'
Expected behavior
Expected to see 'The user canceled the sign-in flow' error, not 'Unknown error in google sign in'.
Hello, thanks for reporting and issuing a fix! You're right – it seems there's a mismatch between the error codes. We'll get this reviewed and aim to include this fix in our next release.
Activity
google#471 Proper user has canceled login error code.
brnnmrls commentedon Sep 9, 2024
Hello, thanks for reporting and issuing a fix! You're right – it seems there's a mismatch between the error codes. We'll get this reviewed and aim to include this fix in our next release.
#471 Proper user has canceled login error code. (#472)