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

Last Updated: 27 July, 2026