K
Kinde4w ago
Tquila

calling logout, and logging in on another account preserves the first account

I am wondering if I am doing something wrong, or if there's a bug. Quite simple to recreate; Have two accounts A and B. Log in to account A, I tested both with 1 time password and username/password. Logout from the app with logout(); const { logout } = useKindeAuth(); - User A goes through the logout redirect flow. Now log in on account B. The user is redirected to the application but the state preserved is account A. I have seen it happen multiple times, both in test and production. It's often not a problem because most "normal users" only have one account, none the less it feels like something is not right.
1 Reply
Krish - Kinde
Krish - Kinde4w ago
Hi, Thanks for flagging this. Could you please confirm which SDK and version you’re using? If possible, could you also share a short recording showing the logout and login flow (from A to B)? That’ll help us check what’s happening in detail.

Did you find this page helpful?