Skip to content

Commit

Permalink
fix(auth): handle expired popup request (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
balzdur authored Jan 31, 2024
1 parent 2ea1071 commit 96b967b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/app-builder/src/services/auth/auth.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export function useGoogleSignIn({
switch (error.code) {
// Fired when the user close the popup without logging in, this shouldn't raise an error on our side
case AuthErrorCodes.POPUP_CLOSED_BY_USER:
case AuthErrorCodes.EXPIRED_POPUP_REQUEST:
case AuthErrorCodes.USER_CANCELLED:
return;
case AuthErrorCodes.NEED_CONFIRMATION:
Expand Down Expand Up @@ -65,6 +66,7 @@ export function useMicrosoftSignIn({
switch (error.code) {
// Fired when the user close the popup without logging in, this shouldn't raise an error on our side
case AuthErrorCodes.POPUP_CLOSED_BY_USER:
case AuthErrorCodes.EXPIRED_POPUP_REQUEST:
case AuthErrorCodes.USER_CANCELLED:
return;
case AuthErrorCodes.NEED_CONFIRMATION:
Expand Down

0 comments on commit 96b967b

Please sign in to comment.