Skip to content

routier-collection


routier-collection / plugins/replication/src / AuthErrorEvent

Interface: AuthErrorEvent

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

Event passed to onAuthError when the remote returns 401 Unauthorized or 403 Forbidden. Higher-level code can use this to trigger re-authentication (e.g. refresh token, redirect to login).

Properties

status

status: 401 | 403

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

HTTP status that triggered the event.


message

message: string

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

Human-readable message (e.g. from response statusText).


originalError

originalError: Error

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

The error thrown or constructed from the response.


context

context: "query" | "bulkPersist"

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

Whether this came from a query (GET) or bulkPersist (POST).

Released under the MIT License.