iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🧯

Firebase Web SDK Exceptions Cheat Sheet

に公開

Will be updated as needed

Auth

Reference: https://github.com/firebase/firebase-js-sdk/blob/ac10cc3491772a3b8500852625029a1602cb2635/packages/auth/src/api/errors.ts#L133-L235

createUserWithEmailAndPassword

Password policy not met

  • auth/password-does-not-meet-requirements

Email address already in use

  • Email enumeration protection disabled
    • auth/email-already-in-use
  • Email enumeration protection enabled
    • auth/invalid-credential

Registration failed for an unspecified reason

  • auth/invalid-credential
    This is generally thrown for various implementation reasons, including authentication between the SDK and Firebase when the aforementioned email enumeration protection is enabled.

Email/Password authentication is not enabled

  • auth/operation-not-allowed

Discussion