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
Properties
code
> readonly code: string
Defined in: core/src/errors.ts:25
Inherited from
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
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