KindeK
Kinde3mo ago
1 reply
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.
Was this page helpful?