Hierarchy

Properties

abortSignal?: AbortSignal

Signal to abort requests that are in flight

body?: BodyInit

Optional body to attach to the request

credentials?: RequestCredentials

Optionally set the request's credentials

headers?: Headers

Optional headers to attach to the request

method: FetchMethod

The method to fetch with

onRefreshTokenFailure?: ((error) => void)

Type declaration

    • (error): void
    • Function to run when re-authentication request fails

      Parameters

      • error: Error

      Returns void

onRefreshTokenSuccess?: ((responseBody) => void)

Type declaration

    • (responseBody): void
    • Function to run when re-authentication request succeeds

      Parameters

      • responseBody: any

      Returns void

refreshTokenURLParameters?: ResourceRequestOptions

Refresh token URL parameters for reauthorization

url: RequestInfo

The url to execute a fetch on

Generated using TypeDoc