Skip to main content

core.medplumclient.wrappedfetch

Home > @medplum/core > MedplumClient > wrappedFetch

MedplumClient.wrappedFetch() method

Wraps fetch execution with token refresh and retry logic.

Signature:

wrappedFetch(url: string, options: RequestInit): Promise<Response>;

Parameters

ParameterTypeDescription
urlstringThe URL to request
optionsRequestInitOptional fetch options

Returns:

Promise<Response>

The response