Skip to content

routier-collection


routier-collection / plugins/replication/src / AuthErrorHandler

Type Alias: AuthErrorHandler()

AuthErrorHandler = (event) => void | boolean | Promise<void | boolean>

Defined in: plugins/replication/src/auth.ts:28

Handler invoked when the remote returns 401/403. May return (or resolve to) true to signal that re-authentication succeeded — e.g. a token refresh — in which case the failed operation is retried ONCE with fresh headers.

Parameters

event

AuthErrorEvent

Returns

void | boolean | Promise<void | boolean>

Released under the MIT License.