TokenEncryption Interface @beta
Hook to let consumers provide their own encryption for the persisted refresh token cache,
e.g. Electron's safeStorage API (which is backed by the OS credential store).
When supplied, this is used instead of the built-in (file-based) cipher key.
Methods
| Name | Description | |
|---|---|---|
| decrypt(ciphertext: __global.Buffer): Promise<string> | ||
| encrypt(plaintext: string): Promise<__global.Buffer> |
Defined in
- TokenEncryption.ts Line 16
Last Updated: 27 July, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.