How to refresh cookie cache
Hey! I have a nextjs application and im mostly using client components to fetch user session.
I would like to use the BA cookie cache functionality to avoid querying the db for each session.
I can see the cookie cache is set whenever a user logs in.
However when the cookie cache duration expires it does not get reset in any way.
Is there a preferred way to reset the cookie cache?
here is my configuration:
im only fetching the session client side.
const { data, isPending } = authClient.useSession()
0 Replies