Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Middleware signout - Better Auth
BA
Better Auth
•
15mo 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
Better Auth
Join
9,988
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
BetterAuth conflict with middleware when SignOut
BA
Better Auth / help
6mo ago
signOut in expo
BA
Better Auth / help
13mo ago
SignOut doesn't redirect
BA
Better Auth / help
5mo ago
signout on the server
BA
Better Auth / help
12mo ago