Stateless session updateAge does not extend session_token expiry
🐛BugNext.js🤔Question
Hi, I’m using Better Auth in stateless mode (no database) and noticed that updateAge does not refresh the expiry of the main session_token cookie.
Setup Next.js App Router Stateless configuration expiresIn = 5 min updateAge = 2 min cookieCache.maxAge = 5 min refreshCache = true
Current behavior
Calling getSession() after updateAge does NOT update the session_token expiry Only session_data and account_data are refreshed after the refreshCache time The user is logged out exactly at expiresIn, even if they are actively using the app
What I am expecting Active usage should extend the session lifetime (sliding session), otherwise stateless sessions force logout at a fixed time.
My goal is to support sliding / inactivity-based sessions without using a database. Is there any recommended workaround or approach for this in stateless mode?
Is this suited for github? Yes, this is suited for github To Reproduce Setup: Nextjs 16 (App router) Better Auth stateless configuration session config: expiresIn = 5 mins, updateAge = 2 mins cooki...