Firebase Authentication is a backend service that provides easy-to-use tools and SDKs to manage user authentication in mobile and web applications. Firebase Authentication error codes are used to indicate specific problems that may occur during the authentication process. These error codes can help developers identify and resolve issues quickly and efficiently.
Here’s a table of common Firebase Authentication error codes and their descriptions:
Error Code | Description and Resolution Steps |
---|---|
auth/ |
The claims payload provided to setCustomUserClaims() exceeds the maximum allowed size of 1000 bytes. |
auth/ |
The provided email is already in use by an existing user. Each user must have a unique email. |
auth/ |
The provided Firebase ID token is expired. |
auth/ |
The Firebase ID token has been revoked. |
auth/ |
The credential used to initialize the Admin SDK has insufficient permission to access the requested Authentication resource. Refer to Set up a Firebase project for documentation on how to generate a credential with appropriate permissions and use it to authenticate the Admin SDKs. |
auth/ |
The Authentication server encountered an unexpected error while trying to process the request. The error message should contain the response from the Authentication server containing additional information. If the error persists, please report the problem to our Bug Report support channel. |
auth/ |
An invalid argument was provided to the authentication method. The error message should contain additional information. |
auth/ |
The custom claim attributes provided to setCustomUserClaims() are invalid. |
auth/ |
The continue URL must be a valid URL string. |
auth/ |
The creation time must be a valid UTC date string. |
auth/ |
The credential used to authenticate the Admin SDKs cannot be used to perform the desired action. Certain Authentication methods such as createCustomToken() and verifyIdToken() require the SDK to be initialized with a certificate credential as opposed to a refresh token or Application Default credential. See Initialize the SDK for documentation on how to authenticate the Admin SDKs with a certificate credential. |
auth/ |
The provided value for the disabled user property is invalid. It must be a boolean. |
auth/ |
The provided value for the displayName user property is invalid. It must be a non-empty string. |
auth/ |
The provided dynamic link domain is not configured or authorized for the current project. |
auth/ |
The provided value for the email user property is invalid. It must be a string email address. |
auth/ |
The provided value for the emailVerified user property is invalid. It must be a boolean. |
auth/ |
The hash algorithm must match one of the strings in the list of supported algorithms. |
auth/ |
The hash block size must be a valid number. |
auth/ |
The hash derived key length must be a valid number. |
auth/ |
The hash key must a valid byte buffer. |
auth/ |
The hash memory cost must be a valid number. |
auth/ |
The hash parallelization must be a valid number. |
auth/ |
The hash rounds must be a valid number. |
auth/ |
The hashing algorithm salt separator field must be a valid byte buffer. |
auth/ |
The provided ID token is not a valid Firebase ID token. |
auth/ |
The last sign-in time must be a valid UTC date string. |
auth/ |
The provided next page token in listUsers() is invalid. It must be a valid non-empty string. |
auth/ |
The provided value for the password user property is invalid. It must be a string with at least six characters. |
auth/ |
The password hash must be a valid byte buffer. |
auth/ |
The password salt must be a valid byte buffer |
auth/ |
The provided value for the phoneNumber is invalid. It must be a non-empty E.164 standard compliant identifier string. |
auth/ |
The provided value for the photoURL user property is invalid. It must be a string URL. |
auth/ |
The providerData must be a valid array of UserInfo objects. |
auth/ |
The providerId must be a valid supported provider identifier string. |
auth/ |
Only exactly one OAuth responseType should be set to true. |
auth/ |
The session cookie duration must be a valid number in milliseconds between 5 minutes and 2 weeks. |
auth/ |
The provided uid must be a non-empty string with at most 128 characters. |
auth/ |
The user record to import is invalid. |
auth/ |
The maximum allowed number of users to import has been exceeded. |
auth/ |
An Android Package Name must be provided if the Android App is required to be installed. |
auth/ |
A valid continue URL must be provided in the request. |
auth/ |
Importing users with password hashes requires that the hashing algorithm and its parameters be provided. |
auth/ |
The request is missing a Bundle ID. |
auth/ |
A uid identifier is required for the current operation. |
auth/ |
The OAuth configuration client secret is required to enable OIDC code flow. |
auth/ |
The provided sign-in provider is disabled for your Firebase project. Enable it from the Sign-in Method section of the Firebase console. |
auth/ |
The provided phoneNumber is already in use by an existing user. Each user must have a unique phoneNumber . |
auth/ |
No Firebase project was found for the credential used to initialize the Admin SDKs. Refer to Set up a Firebase project for documentation on how to generate a credential for your project and use it to authenticate the Admin SDKs. |
auth/ |
One or more custom user claims provided to setCustomUserClaims() are reserved. For example, OIDC specific claims such as (sub, iat, iss, exp, aud, auth_time, etc) should not be used as keys for custom claims. |
auth/ |
The provided Firebase session cookie is expired. |
auth/ |
The Firebase session cookie has been revoked. |
auth/ |
The number of requests exceeds the maximum allowed. |
auth/ |
The provided uid is already in use by an existing user. Each user must have a unique uid . |
auth/ |
The domain of the continue URL is not whitelisted. Whitelist the domain in the Firebase Console. |
auth/ |
There is no existing user record corresponding to the provided identifier. |