@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
| Feature | Description |
|---|---|
| Secure storage | Tokens encrypted via Electron’s safeStorage API |
| OAuth popup | Opens provider auth in a new BrowserWindow |
| IPC bridge | Secure main/renderer communication |
| Auto-refresh | Background token refresh |
| Deep links | Handle myapp:// callback URLs |
Token storage uses Electron’s
safeStorage.encryptString() which uses the OS keychain (Keychain on macOS, DPAPI on Windows, Secret Service on Linux).