Skip to content

basalt / auth/src / ScopeRequiredError

Class: ScopeRequiredError ​

Defined in: auth/src/apikeys.ts:12

A route required a scope the presented key does not hold.

Extends ​

Constructors ​

Constructor ​

> new ScopeRequiredError(scope): ScopeRequiredError

Defined in: auth/src/apikeys.ts:14

Parameters ​

scope ​

string

Returns ​

ScopeRequiredError

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.ts:13

Released under the MIT License.