-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Environment:OS:
node.js / npm versions:
Additional info:
Problem Statement/Rationale
On the "Use Generative AI" setting page, when a user clicks "Log in with Atlas" after clicking "Disconnect", Compass fails.
Steps to Reproduce
- Open Menu -> Settings -> Feature Preview
- Click "Log in with Atlas" and complete the OIDC login flow
- Click "Disconnect"
- Observe that the button changed to "Log in with Atlas" that looks like we are successfully disconnected
- Click "Log in with Atlas" again
- Observe that the button is changed to "Disconnect" without going through OIDC flow
- Click "Disconnect" again
- Error: Can't sign out if not signed in yet
Expected Results
The button reflects the actual auth state
Actual Results
The error is thrown