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](./auth.md#proderrormap) will save you roughly 10k compressed/gzipped over [debugErrorMap](./auth.md#debugerrormap). You can select the error map during initialization: ```javascript initializeAuth(app, {errorMap: debugErrorMap}) ``` When initializing Auth, [prodErrorMap](./auth.md#proderrormap) is default. Signature: ```typescript export interface AuthErrorMap ```