Search
Setup for Free
BA
Better Auth
•
13mo ago
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,552
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
auth.api.signout({headers: request.headers})
auth.api.signout({headers: request.headers})
Similar Threads
BetterAuth conflict with middleware when SignOut
BA
Better Auth / help
4mo ago
signOut in expo
BA
Better Auth / help
11mo ago
SignOut doesn't redirect
BA
Better Auth / help
3mo ago
signout on the server
BA
Better Auth / help
10mo ago