How to manually invalidate session data?
I'm using Next.js and next-safe-action and
auth.$context.internalAdapter
. After that, how do we invalidate the session data/cache?3 Replies
Session Management | Better Auth
Better Auth session management.
Thanks for your response! I'm still a bit confused about this. Currently, I'm retrieving all my sessions using:
What should I do in this case?
Solution
Fixed by using
auth.api.updateUser
and nextCookies()
plugin