When a user logs into an account and content-switches to an organization, then performs a logout, attempting to log in again using Google credentials results in a 401 Unauthorized error.
Steps to Reproduce:
Login to the platform using any method (e.g., email/password or Google).
Switch context to an organization.
Perform a logout action.
Attempt to log in again using Google authentication.
Expected Behavior:
The user should be successfully logged in using Google credentials and redirected to the appropriate dashboard.
Actual Behavior:
A 401 Unauthorized error is returned after trying to log in with Google.
Impact:
Users who switch to an organization and log out are unable to log in again with Google, creating a blocker and negatively affecting user experience.
I tested with two differents organizations:
Org 1
Org 2
