Documentation Index
Fetch the complete documentation index at: https://auth0.generaltranslation.app/llms.txt
Use this file to discover all available pages before exploring further.
useErrors(options)
React hook for reading and managing errors in ACUL (Advanced Customization of Universal Login).
With all validation and server-side errors. It groups errors into three kinds:In addition to rendering messages, you can filter by field or kind:
server— errors returned by Auth0 or your own backend.client— errors from client-side validation (e.g., invalid form input).developer— errors caused by incorrect integration or SDK misuse.
Returns
UseErrorsResultAn object of type UseErrorsResult, containing:errors— the full error list of type ErrorsResult, with helpers:errors.byKind(kind, filter?)— filter by error kind and optionally by field.errors.byField(field, filter?)— filter by field and optionally by kind.
hasError—trueif any error is currently present.dismiss(id)— remove a specific error by its ID.dismissAll()— clear all tracked errors.
Supported Screens
- The
useErrorshook is available on every ACUL screen.
Example