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

DelegationProviderProps interface

Warning: This API is now obsolete.

This beta identity delegation API may change with breaking changes.

Signature:

Properties

Property

Modifiers

Type

Description

checkActive

() => Promise<boolean>

Called to check if a delegation session is already active (e.g. a valid cookie exists). Return true to skip the session-token exchange.

children

React__default.ReactNode

onSessionToken

(sessionToken: string) => Promise<void>

Called with the session token to exchange it for a delegation token on your backend. Resolve on success, throw on failure.

revalidateAfterMs?

number

(Optional) Minimum number of milliseconds the tab must have been hidden before a revalidateOnFocus check runs. Prevents hammering the server on rapid tab switches. Defaults to 30 seconds.

revalidateOnFocus?

boolean

(Optional) When true.

Defaults to true.

sdk

UniformMeshSDK

UniformMeshSDK instance obtained from useUniformMeshSdk().