The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/auth > AuthErrorMap

AuthErrorMap interface

A mapping of error codes to error messages.

Signature:

export interface AuthErrorMap 

Description

While error messages are useful for debugging (providing verbose textual context around what went wrong), these strings take up a lot of space in the compiled code. When deploying code in production, using prodErrorMap will save you roughly 10k compressed/gzipped over debugErrorMap. You can select the error map during initialization:

initializeAuth(app, {errorMap: debugErrorMap})

When initializing Auth, prodErrorMap is default.