Better Auth Idle Timeout Plugin

JSON →
library 1.0.1 ·javascript
verified Jun 4, 2026

Automatically expires and revokes Better Auth sessions after a configurable period of user inactivity. Current stable version is 1.0.1, released in 2025. The plugin tracks activity via a global request hook, throttles database writes (default 60s cooldown) to prevent write-locking on rapid requests, and deletes the session on timeout. It requires TypeScript 5+ and Better Auth ^1.6.11. Key differentiator: lightweight, zero-dependency plugin model vs custom middleware solutions; tightly integrated with Better Auth's session lifecycle.