Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-7787

Can't sign out if not signed in yet

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.42.5
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 3
    • Iteration Xiaosaurus
    • Not Needed
    • Developer Tools

      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

        1. log.txt
          501 kB
        2. Screenshot 2024-03-21 at 13.29.38.png
          Screenshot 2024-03-21 at 13.29.38.png
          576 kB
        3. Screenshot 2024-03-21 at 13.29.41.png
          Screenshot 2024-03-21 at 13.29.41.png
          812 kB

            Assignee:
            alena.khineika@mongodb.com Alena Khineika
            Reporter:
            alena.khineika@mongodb.com Alena Khineika
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: