Skip to content

basalt / auth/src / SecretUnreadableError

Class: SecretUnreadableError ​

Defined in: auth/src/secret-box.ts:56

A stored secret could not be opened: not an envelope (and no legacy opt-in), an unknown key id, tampering, or a blob that belongs to another record. One error for every case, so a caller cannot tell them apart.

Extends ​

Constructors ​

Constructor ​

> new SecretUnreadableError(detail): SecretUnreadableError

Defined in: auth/src/secret-box.ts:59

Parameters ​

detail ​

string

Returns ​

SecretUnreadableError

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


expose ​

> readonly expose: false = false

Defined in: auth/src/secret-box.ts:58


status ​

> readonly status: 500 = 500

Defined in: auth/src/secret-box.ts:57

Released under the MIT License.