© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
How to manually invalidate session data? - Better Auth
BA
Better Auth
•
13mo ago
•
5 replies
Nelson Lai
How to manually invalidate session data?
I
'm using Next
.js and next
-safe
-action and
auth.$context.internalAdapter
auth.$context.internalAdapter
. After that
, how do we invalidate the session data
/cache
?
Solution
Fixed by using
auth.api.updateUser
auth.api.updateUser
and
nextCookies()
nextCookies()
plugin
Jump to solution
Recent Announcements
Similar Threads
How to manually create a session cookie
BA
Better Auth / help
5mo ago
Create Session Manually
BA
Better Auth / help
9mo ago
Update session manually
BA
Better Auth / help
14mo ago
Manually create a session
BA
Better Auth / help
12mo ago