<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/auth](./auth.md) &gt; [AuthErrorMap](./auth.autherrormap.md)

## AuthErrorMap interface

A mapping of error codes to error messages.

<b>Signature:</b>

```typescript
export interface AuthErrorMap 
```

## Remarks

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.proderrormap.md) will save you roughly 10k compressed/gzipped over [debugErrorMap](./auth.debugerrormap.md)<!-- -->. You can select the error map during initialization:

```javascript
initializeAuth(app, {errorMap: debugErrorMap})

```
When initializing Auth, [prodErrorMap](./auth.proderrormap.md) is default.

