Skip to content

basalt / auth/src / SecretContext

Interface: SecretContext ​

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

What a ciphertext is bound to. Changing either field makes it undecryptable.

Properties ​

purpose ​

> purpose: string

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

What the secret is for, e.g. 'totp'.


subject ​

> subject: string

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

Whose secret it is, e.g. the user id.

Released under the MIT License.