Skip to content

SecretStorage

Defined in: context.svelte.ts:153

In-memory secret store used by runtime services and plugins.

Hosts may replace or mirror this with stronger persisted storage, but the API surface intentionally stays small and synchronous for plugin code.

new SecretStorage(): SecretStorage

SecretStorage

getSecret(id): string | null

Defined in: context.svelte.ts:177

Look up a secret by id.

string

Stable identifier for the secret.

string | null

The stored secret value, or null if no secret exists.


listSecrets(): string[]

Defined in: context.svelte.ts:186

List the ids of all stored secrets.

string[]


setSecret(id, secret): void

Defined in: context.svelte.ts:163

Store or replace a secret value.

string

Stable identifier for the secret.

string

Raw secret value to store.

void