feat(auth): make the session TTL an inactivity timeout #22
Loading…
Reference in a new issue
No description provided.
Delete branch "worktree-session-idle-timeout"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
OPUS_SESSION_LENGTH (24h default) already capped a session, but the JWT was only
re-minted in its last 30 minutes — so it behaved as a fixed deadline from login,
and an abandoned browser stayed logged in for the rest of that window with no
concept of idleness at all.
Rotate once an hour of the token's life has been used instead, so "exp" always
sits 24h after the last request. Idle past the TTL and the cookie's own expiry
logs the user out; stay active and the session never interrupts you.
Co-Authored-By: Claude Opus 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_0124fVy4aNte4hb94V5GARKT