Skip to content

obsidian/SecretStorage

Mock of Obsidian’s SecretStorage, the app’s store of named secrets.

Class Description
SecretStorage Mock of Obsidian’s SecretStorage, which stores secret values by id. Secrets are kept in an in-memory map for the lifetime of the instance, so nothing is encrypted or persisted. As in Obsidian, SecretStorage.setSecret validates the id and triggers changed.