© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Middleware signout - Better Auth
BA
Better Auth
•
16mo ago
•
4 replies
kingkyle
Middleware signout
how can i signout a user session from nextjs middleware
. the authclient is not working there because its a client component
. using the auth directly
auth.api.signout({headers: request.headers})
auth.api.signout({headers: request.headers})
doesnt work as well
Similar Threads
BetterAuth conflict with middleware when SignOut
BA
Better Auth / help
8mo ago
DatabaseHooks on signOut.
BA
Better Auth / help
6d ago
signOut in expo
BA
Better Auth / help
14mo ago
SignOut doesn't redirect
BA
Better Auth / help
6mo ago