AuthErrorMap interface
Stay organized with collections
Save and categorize content based on your preferences.
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:
initializeAuth(app, {errorMap: debugErrorMap})
When initializing Auth, prodErrorMap is default.
Signature:
export interface AuthErrorMap
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-22 UTC.
[null,null,["Last updated 2022-07-22 UTC."],[],[],null,["A mapping of error codes to error messages.\n\nWhile 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: \n\n initializeAuth(app, {errorMap: debugErrorMap})\n\nWhen initializing Auth, [prodErrorMap](./auth.md#proderrormap) is default.\n\n**Signature:** \n\n export interface AuthErrorMap"]]