Created
September 6, 2023 16:59
-
-
Save Code-Victor/e80d83d1c8adbddd822fe1857cc897d9 to your computer and use it in GitHub Desktop.
contains known error messages for the Glouse API
This file contains hidden or 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
| const errors = { | |
| auth: { | |
| login: [ | |
| "This device is unrecognised, an otp has been sent to your mail to verify the account", | |
| "invalid credentials", | |
| ], | |
| signuOtp: ["email in use", "Otp has been sent within the minute"], | |
| verifySignupOtp: ["Otp entered is incorrect", "Otp has expired"], | |
| saveSignupDetails: [ | |
| "Phone number entered is not a valid Nigerian number", | |
| "Otp has expired", | |
| ], | |
| verifyDeviceOtp: ["Otp is incorrect", "User not found"], | |
| changePassword: [ | |
| "Unrecognised devices cannot make password change", | |
| "Old password is incorrect", | |
| ], | |
| forgotPasswordOtp: [ | |
| "user with this email does not exist", | |
| "OTP has been sent within the minute.", | |
| ], | |
| verifyForgotPasswordOtp: ["Otp is invalid", "OTP has expired"], | |
| resetPassword: ["user does not exist"], | |
| googleAuth: [ | |
| "Already signed up with email, login instead", | |
| "Email does not match google account", | |
| ], | |
| }, | |
| } as const; | |
| export default errors; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment