SecretStorage

Represents a storage utility for secrets (or any information that is sensitive) that will be stored encrypted. The implementation of the secret storage will be different on each platform and the secrets will not be synced across machines.

Online Documentation

Properties

Link copied to clipboard

Fires when a secret is stored or deleted.

Functions

Link copied to clipboard
abstract fun delete(key: String): PromiseLike<Void>

Remove a secret from storage.

Link copied to clipboard
abstract fun get(key: String): PromiseLike<JsString?>

Retrieve a secret that was stored with key. Returns undefined if there is no password matching that key.

Link copied to clipboard
abstract fun store(key: String, value: String): PromiseLike<Void>

Store a secret under a given key.