Skip to main content

TokenStorage

For AI agents: see llms.txt for the complete documentation index. Markdown versions are available by adding .md to a page URL or requesting Accept: text/markdown.

Read/write/delete string values by key. Every method may be synchronous or return a promise, so async stores (e.g. React Native secure storage) work without ceremony.

Properties​

PropertyTypeDescription
getItem(key) => | string | Promise<string | null | undefined> | null | undefinedRead a value.
removeItem(key) => void | Promise<void>Remove a value.
setItem(key, value) => void | Promise<void>Write a value.