Skip to main content

SecretStorage

interface

Encrypted per-mod storage for tokens and refresh tokens. The only correct home for a credential. Mod state and configuration are readable by anyone who can read the profile, this is not.

interface SecretStorage

Import

import { SecretStorage } from '@modular/sdk';

Members3

delete
(key: string) => Promise<void>
get
(key: string) => Promise<string | undefined>
store
(key: string, value: string) => Promise<void>

Notes

category
Authoring