Skip to content

@graphty/graphty-element / ai / PassphrasePersistenceConfig

Interface: PassphrasePersistenceConfig ​

Defined in: graphty-element/src/ai/keys/ApiKeyManager.ts:40

Options for ApiKeyManager.enablePersistenceWithPassphrase. Every field is optional.

Properties ​

prefix? ​

optional prefix?: string

Defined in: graphty-element/src/ai/keys/ApiKeyManager.ts:51

Prefix for storage keys (default: the constructor's, which defaults to "@graphty-ai-keys")


salt? ​

optional salt?: string

Defined in: graphty-element/src/ai/keys/ApiKeyManager.ts:47

A per-reader value mixed into the key, such as an account id or random bytes the host keeps. It need not be secret, but one per reader means a guessed passphrase cannot be tried against every reader at once. The same passphrase and salt always unlock the same keys. Default: a fixed salt shared by every reader.


storage? ​

optional storage?: StorageType

Defined in: graphty-element/src/ai/keys/ApiKeyManager.ts:49

Storage type (default: the constructor's, which defaults to "localStorage")