Skip to content

AuthErrorShape

AuthErrorShape<TShape> = Omit<TShape, "data" | "message"> & object

TShape extends ShapeLike

readonly data: Omit<TShape["data"], "stack"> & object

readonly auth: PublicAuthError | null

Set on an auth refusal: the public code, and when to retry on rate_limited.

readonly input: readonly PublicInputIssue[] | null

Set when the input failed validation: where and what kind, never the value.

readonly message: string