-
Notifications
You must be signed in to change notification settings - Fork 19
Error codes map
Samuel Elgozi edited this page May 7, 2020
·
1 revision
Here is an error codes map with each error's human readable message in english. This used to be part of the lib, but was dumped in order to allow easier internationalisation. Use this map, or one with a different language to display nicer errors for your users.
{
"TOKEN_EXPIRED": "The user's credential is no longer valid. The user must sign in again.",
"USER_DISABLED": "The user account has been disabled by an administrator.",
"USER_NOT_FOUND": "There is no user record corresponding to this identifier. The user may have been deleted.",
"INVALID_REFRESH_TOKEN": "An invalid refresh token is provided.",
"INVALID_GRANT_TYPE": "The grant type specified is invalid.",
"MISSING_REFRESH_TOKEN": "No refresh token provided.",
"EMAIL_EXISTS": "The email address is already in use by another account.",
"OPERATION_NOT_ALLOWED": "Password sign-in is disabled for this project.",
"TOO_MANY_ATTEMPTS_TRY_LATER": "We have blocked all requests from this device due to unusual activity. Try again later.",
"EMAIL_NOT_FOUND": "There is no user record corresponding to this identifier. The user may have been deleted.",
"INVALID_PASSWORD": "The password is invalid or the user does not have a password.",
"EXPIRED_OOB_CODE": "The action code has expired.",
"INVALID_OOB_CODE": "The action code is invalid. This can happen if the code is malformed, expired, or has already been used.",
"INVALID_ID_TOKEN": "The user's credential is no longer valid. The user must sign in again.",
"CREDENTIAL_TOO_OLD_LOGIN_AGAIN": "The user's credential is no longer valid. The user must sign in again.",
"WEAK_PASSWORD": "The password must be 6 characters long or more.",
"INVALID_EMAIL": "The email address is invalid.",
"MISSING_PASSWORD": "The password field is empty."
}