Skip to content

fix: update auth state immediately on sign out#1814

Open
jaryalarshita wants to merge 1 commit into
SwitchbackTech:mainfrom
jaryalarshita:fix/cmd-palette-auth-actions
Open

fix: update auth state immediately on sign out#1814
jaryalarshita wants to merge 1 commit into
SwitchbackTech:mainfrom
jaryalarshita:fix/cmd-palette-auth-actions

Conversation

@jaryalarshita
Copy link
Copy Markdown
Contributor

Summary

Fixes the command palette showing both "Log In" and "Log Out" actions after signing out.

Closes #1809

Changes Made

  • Updated the SIGN_OUT session event handling to immediately set the authentication state to logged out instead of waiting for the async session check to complete.
  • Added handleSessionMissing() during sign out to ensure auth-related state is cleared consistently across the app.

Result

After logging out, the session state now updates instantly, so the command palette correctly shows only the relevant authentication actions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cmd Palette shows Log In and Log Out actions

1 participant