Slopeur
Explore posts from serversBABetter Auth
•Created by ChowderCrab on 2/18/2025 in #help
Cookie cache does not refresh with server-side getSession call
FYI, this should be fixed in
1.2.6
with the addition of the new reactStartCookies
plugin https://www.better-auth.com/docs/integrations/tanstack#usage-tips34 replies
BABetter Auth
•Created by ChowderCrab on 2/18/2025 in #help
Cookie cache does not refresh with server-side getSession call
On the server? I am not seeing the
better-auth.session_data
cookie ever get refreshed. Once it expires, the DB is continusouly hit. I am trying to avoid having to call useSession
or getSession
on the client and was hoping the cookie could be updated when calling auth.api.getSession({ headers })
34 replies
BABetter Auth
•Created by ChowderCrab on 2/18/2025 in #help
Cookie cache does not refresh with server-side getSession call
Is there a solution for this yet? I'm currently looking for a way to update the
better-auth.session_data
cookie if it is expired and stumbled accross this thread. I am using [email protected]
and @tanstack/[email protected]
34 replies