mirror of
https://github.com/bitbaum/accountkit.git
synced 2026-12-04 04:57:12 +01:00
better-auth refreshes every session to one shared lifetime, so a product that needs a stricter rule for some people (AOZ staff on 8 hours) could not keep it: a shorter expiry written from outside was undone on the next request. sessionLifetime(userId) takes the refresh over for the people it names: idle past the limit ends the session, activity slides it at most hourly, and the 14-day refresh no longer applies. Everyone else keeps the default. Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 Co-authored-by: Claude <noreply@anthropic.com>