Back to Firebase Js Sdk

AuthErrorMap interface

docs-devsite/auth.autherrormap.md

12.12.1999 B
Original Source

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

AuthErrorMap interface

A mapping of error codes to error messages.

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:

javascript
initializeAuth(app, {errorMap: debugErrorMap})

When initializing Auth, prodErrorMap is default.

<b>Signature:</b>

typescript
export interface AuthErrorMap