-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: improve create user firebase error logging (#476)
- Loading branch information
1 parent
01a90b3
commit 3978d94
Showing
4 changed files
with
25 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
export const CREATE_USER_FIREBASE_ERROR = 'CREATE_USER_FIREBASE_ERROR'; | ||
export const CREATE_USER_INVALID_EMAIL = 'CREATE_USER_INVALID_EMAIL'; | ||
export const CREATE_USER_WEAK_PASSWORD = 'CREATE_USER_WEAK_PASSWORD'; | ||
export const CREATE_USER_ALREADY_EXISTS = 'CREATE_USER_ALREADY_EXISTS'; | ||
// Includes known/expected firebase errors from user inputs | ||
// These errors are returned to the user and display appropriate error messages | ||
// However these errors are ignored from rollbar and error logging | ||
export enum FIREBASE_ERRORS { | ||
CREATE_USER_FIREBASE_ERROR = 'CREATE_USER_FIREBASE_ERROR', | ||
CREATE_USER_INVALID_EMAIL = 'CREATE_USER_INVALID_EMAIL', | ||
CREATE_USER_WEAK_PASSWORD = 'CREATE_USER_WEAK_PASSWORD', | ||
CREATE_USER_ALREADY_EXISTS = 'CREATE_USER_ALREADY_EXISTS', | ||
} |