Skip to content

basalt / auth/src / ApiKeyNotAllowedError

Class: ApiKeyNotAllowedError ​

Defined in: auth/src/apikeys-plugin.ts:57

The route only accepts an interactive session, not an API key.

Extends ​

Constructors ​

Constructor ​

> new ApiKeyNotAllowedError(): ApiKeyNotAllowedError

Defined in: auth/src/apikeys-plugin.ts:59

Returns ​

ApiKeyNotAllowedError

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/apikeys-plugin.ts:58

Released under the MIT License.