Skip to main content

Documentation Index

Fetch the complete documentation index at: https://auth0.com/llms.txt

Use this file to discover all available pages before exploring further.

An array-like object returned as part of UseErrorsResult by the useErrors hook. Extends ReadonlyArray<ErrorItem>, so it can be iterated, spread, or indexed directly. Provides two methods for querying the error list by type or field.
interface ErrorsResult extends ReadonlyArray<ErrorItem> {
  byType(type: ErrorType, opts?: { field?: string }): readonly ErrorItem[];
  byField(field: string, opts?: { type?: ErrorType }): readonly ErrorItem[];
}

Methods

byType
readonly ErrorItem[]
Returns all errors matching the given ErrorType, optionally filtered to a specific field.
byField
readonly ErrorItem[]
Returns all errors associated with the given field name, optionally filtered to a specific ErrorType.