Przejdź do głównej zawartości

Interface: SessionRetryOptions

Properties

onSessionExpired

onSessionExpired: (event) => void

Notify that the session is gone (a mutation 401, or a query whose refresh-retry failed).

Parameters

event

SessionExpiredEvent

Returns

void


refresh

refresh: () => Promise<boolean>

Renew the session (refresh token → cookie sync → store update). Resolves true on success. MUST dedupe concurrent calls so simultaneous 401s share a single renewal.

Returns

Promise<boolean>


skipOperations?

optional skipOperations?: string[]

Operation names exempt from 401 handling (default: the auth operations).