Skip to content
docs

SecretStorage

Defined in: keyring.ts:37

One secret per source, kept by the app in secure storage (Keychain / Keystore behind biometrics). The keyring reads a secret only for the call that needs it and drops it right after; it never caches one.

delete(sourceId): Promise<void>

Defined in: keyring.ts:48

Delete the secret when the source is removed. Must be idempotent: deleting an id that is not there resolves. The keyring retries a delete that failed (or was cut short) on the next load.

string

Promise<void>


get(sourceId): Promise<string | null>

Defined in: keyring.ts:41

The source’s secret, or null when it is missing (the keyring then throws secret-missing).

string

Promise<string | null>


set(sourceId, secret): Promise<void>

Defined in: keyring.ts:43

Store a new source’s secret. Called once, when the source is created or imported.

string

string

Promise<void>