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

useDelegationFetch() function

Warning: This API is now obsolete.

This beta identity delegation API may change with breaking changes.

fetch for BFF calls: injects the Mesh CSRF header, and on delegation_expired 401 reacquires via useDelegation() then retries once. Requires DelegationProvider.

Signature:

Parameters

Parameter

Type

Description

options

Omit<CreateDelegationFetchOptions, 'reacquire'>

(Optional)

Returns:

typeof fetch