Multiple simultaneous log in to the same account
Hi! I have on my platform an impersonation feature that admins can use to log as a user. So on the same account, a user and an admin can be connected
If the Admin then clicks "Log out" it is also logging out the user! I'd like to make the logout to work only by session and not killing everyone. I am using NextJS 15 with Suapabase SSR and here is my code :
And here is the "createClient" logic:
I'm doing no more, no less.
Any idea why this logic is killing all sessions instead of only the one calling signout ? Worth mentionning that the session seams still live on the Client side of the user, but the server session is killed
Many thanks!
If the Admin then clicks "Log out" it is also logging out the user! I'd like to make the logout to work only by session and not killing everyone. I am using NextJS 15 with Suapabase SSR and here is my code :
And here is the "createClient" logic:
I'm doing no more, no less.
Any idea why this logic is killing all sessions instead of only the one calling signout ? Worth mentionning that the session seams still live on the Client side of the user, but the server session is killed
Many thanks!