Fix 401 Error When Logging in with Google After Logout from Organization Context
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
- Domain
- AuthN-Z
- Action
- fix
- Department
- Backend
Log in to comment and vote
Comments1
Mattia Vaccari
Oct 16, 2025
This Bug is solved