type FetchPreflightFunc: (req) => Promise<FetchRequest>;

Called before any network request, allowing updated headers (e.g. Bearer tokens), etc.

Parameters

ParameterType
reqFetchRequest

Returns

Promise<FetchRequest>

Source

utils/fetch.ts:52