Shambhu Tiwary
BABetter Auth
•Created by Shambhu Tiwary on 2/23/2025 in #help
Session cache update on demand
I am using session cache in better-auth config to avoid hitting db each time i need session.
But in a scenario where I need to update the session for ex update the active Organization, the fresh session is not available to the better auth api calls.
And it still fetches from the cache. How do I update the cache as well when I do any update on the session.
5 replies