An authentication error.For method-specific error codes, refer to the specific methods in thedocumentation. For common error codes, check the reference below. Usefirebase.auth.Error.code to get the specific error code. For a detailedmessage, usefirebase.auth.Error.message.Errors with the codeauth/account-exists-with-different-credential will have the additional fieldsemail andcredential which are needed to provide a way to resolve thesespecific errors. Refer tofirebase.auth.Auth.signInWithPopup for moreinformation.
Common Error Codes
- auth/app-deleted
- Thrown if the instance of FirebaseApp has been deleted.
- auth/app-not-authorized
- Thrown if the app identified by the domain where it's hosted, is notauthorized to use Firebase Authentication with the provided API key.Review your key configuration in the Google API console.
- auth/argument-error
- Thrown if a method is called with incorrect arguments.
- auth/invalid-api-key
- Thrown if the provided API key is invalid. Please check that you havecopied it correctly from the Firebase Console.
- auth/invalid-user-token
- Thrown if the user's credential is no longer valid. The user must sign inagain.
- auth/invalid-tenant-id
- Thrown if the tenant ID provided is invalid.
- auth/network-request-failed
- Thrown if a network error (such as timeout, interrupted connection orunreachable host) has occurred.
- auth/operation-not-allowed
- Thrown if you have not enabled the provider in the Firebase Console. Goto the Firebase Console for your project, in the Auth section and theSign in Method tab and configure the provider.
- auth/requires-recent-login
- Thrown if the user's last sign-in time does not meet the securitythreshold. Usefirebase.User.reauthenticateWithCredential toresolve. This does not apply if the user is anonymous.
- auth/too-many-requests
- Thrown if requests are blocked from a device due to unusual activity.Trying again after some delay would unblock.
- auth/unauthorized-domain
- Thrown if the app domain is not authorized for OAuth operations for yourFirebase project. Edit the list of authorized domains from the Firebaseconsole.
- auth/user-disabled
- Thrown if the user account has been disabled by an administrator.Accounts can be enabled or disabled in the Firebase Console, the Authsection and Users subsection.
- auth/user-token-expired
- Thrown if the user's credential has expired. This could also be thrown ifa user has been deleted. Prompting the user to sign in again shouldresolve this for either case.
- auth/web-storage-unsupported
- Thrown if the browser does not support web storage or if the userdisables them.
Index
Properties
code
Unique error code.
message
Complete error message.
name
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-27 UTC.