Skip to content

Commit

Permalink
Add auth/popup-blocked handling
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirAgassi authored and juancwu committed Apr 23, 2024
1 parent 3fd1955 commit 969c5ef
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/providers/auth.provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,17 @@ function getNotificationByAuthErrCode(code: string): NotificationOptions {
case "auth/email-already-in-use":
return {
title: "Email In Use",
message:
"If you forgot your password, click on 'forgot password' to recover it!",
message: "If you forgot your password, click on 'forgot password' to recover it!",
};
case "auth/invalid-login-credentials":
return {
title: "Invalid Credentials",
message:
"Please make sure you have the correct credentials and try again.",
message: "Please make sure you have the correct credentials and try again.",
};
case "auth/popup-blocked":
return {
title: "Login Blocked",
message: "Popup windows are blocked. Please allow them in your browser settings to continue.",
};
default:
return {
Expand Down

0 comments on commit 969c5ef

Please sign in to comment.