Home > @uniformdev/mesh-sdk-react > CreateDelegationFetchOptions

CreateDelegationFetchOptions interface

Warning: This API is now obsolete.

This beta identity delegation API may change with breaking changes.

Options for createDelegationFetch().

Signature:

Properties

Property

Modifiers

Type

Description

fetch?

typeof fetch

(Optional) Fetch implementation override (e.g. selective polyfill).

isDelegationExpired?

(response: Response) => Promise<boolean>

(Optional) Whether a failed response requires re-exchange. Defaults to catching 401 with { code: 'delegation_expired' }.

reacquire

() => Promise<void>

Re-runs session-token exchange. Concurrent callers should share one in-flight attempt (as DelegationProvider.reacquire does).