Type Alias HandleAuthenticationErrorProps<A>

Props for function handleAuthenticationError

type HandleAuthenticationErrorProps<A extends AuthType = AuthType> = {
    canRetry: boolean;
    errorBody?: Record<string, unknown>;
    headers: Headers;
    hostConfig: HostConfig<A>;
    status: number;
}

Type Parameters

Index

Properties

canRetry: boolean

Set to true if it is possible to perform a retry. This will be true for the first call, and false if the call is actually a retry

errorBody?: Record<string, unknown>

Body of the error response

headers: Headers

HTTP response headers

hostConfig: HostConfig<A>

host config for connecting to a host

status: number

HTTP status of the response