Skip to content

Instantly share code, notes, and snippets.

@Code-Victor
Created September 6, 2023 16:59
Show Gist options
  • Select an option

  • Save Code-Victor/e80d83d1c8adbddd822fe1857cc897d9 to your computer and use it in GitHub Desktop.

Select an option

Save Code-Victor/e80d83d1c8adbddd822fe1857cc897d9 to your computer and use it in GitHub Desktop.
contains known error messages for the Glouse API
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