Skip to main content
@kavachos/electron provides secure auth for Electron desktop apps with encrypted token storage, OAuth popup windows, and IPC bridge for renderer-to-main communication.

Install

Setup (main process)

Usage (renderer)

Features

Token storage uses Electron’s safeStorage.encryptString() which uses the OS keychain (Keychain on macOS, DPAPI on Windows, Secret Service on Linux).
Last modified on April 29, 2026