Skip to content

StreamErrorHandler

StreamErrorHandler = (error) => Promise<{ headers: { authorization: string; }; } | undefined>

Defined in: packages/client/src/circuits/stream-source.ts:65

The token-recovery policy as a function of a read error: resolves with the authorization header to retry with, or undefined when the error must stand.

Error

Promise<{ headers: { authorization: string; }; } | undefined>