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?
Solution:
Fixed by using auth.api.updateUser and nextCookies() plugin
Jump to solution
3 Replies
Nelson
NelsonOP2d ago
Thanks for your response! I'm still a bit confused about this. Currently, I'm retrieving all my sessions using:
await auth.api.getSession({
headers: requestHeaders
})
await auth.api.getSession({
headers: requestHeaders
})
What should I do in this case?
Solution
Nelson
Nelson2d ago
Fixed by using auth.api.updateUser and nextCookies() plugin

Did you find this page helpful?