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.