disableCookieCache: it doesn't refresh the cookie cache
I have a page where I have to set active organization and active team when the user goes. In auth configuration the session cookieCache is enabled and maxAge is 300. After setting the active organization and active team, I'm getting the refreshed session by using disableCookieCache: true, and log the session and I can see the active org and active team, so far so good.
But when I refresh the page, the page again sets the active organization and active team because session data in cookie is not refreshed. It still has empty active org and active team. Based on doc (https://www.better-auth.com/docs/concepts/session-management#session-caching), it says disableCookieCache: true will refresh the cookie cache, but it doesn't.
Am I missing a point here?
Session Management | Better Auth
Better Auth session management.
0 Replies