Skip to content

basalt / auth/src / CsrfRejectedError

Class: CsrfRejectedError ​

Defined in: auth/src/plugin.ts:65

A cookie-authenticated, state-changing request came from another origin.

Extends ​

Constructors ​

Constructor ​

> new CsrfRejectedError(): CsrfRejectedError

Defined in: auth/src/plugin.ts:67

Returns ​

CsrfRejectedError

Overrides ​

BasaltError.constructor

Properties ​

code ​

> readonly code: string

Defined in: core/src/errors.ts:25

Inherited from ​

BasaltError.code


details? ​

> readonly optional details?: Record<string, unknown>

Defined in: core/src/errors.ts:28

Structured payload passed to the constructor, exactly as given (never sanitised here).

Inherited from ​

BasaltError.details


status ​

> readonly status: 403 = 403

Defined in: auth/src/plugin.ts:66

Released under the MIT License.