Having problems establishing connection between server and client methods of authentication logic
I use auth.api.getSession to get the current user session to see if he is logged in or not, and show a logout button.
In the logout button, authClient.signOut is used to logout. But after logout and refresh, the logout button still shows up.
How to manage the connection of user status between server and client?
Tech Stack:
Tanstack start
Better Auth
Prisma ORM
Mongodb Database
In the logout button, authClient.signOut is used to logout. But after logout and refresh, the logout button still shows up.
How to manage the connection of user status between server and client?
Tech Stack:
Tanstack start
Better Auth
Prisma ORM
Mongodb Database