How to sign out the user from server side
I'm using Next.js (App Router) along with the
I want to implement a logout functionality from the server side, where I remove the session cookie and redirect the user to the login page.
better-auth package to manage authentication sessions via cookies.I want to implement a logout functionality from the server side, where I remove the session cookie and redirect the user to the login page.