Skip to content

fix: await logout#1029

Merged
perber merged 1 commit into
mainfrom
fix/await-logout
May 24, 2026
Merged

fix: await logout#1029
perber merged 1 commit into
mainfrom
fix/await-logout

Conversation

@perber

@perber perber commented May 24, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 24, 2026 01:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR ensures the UI waits for the session logout flow to complete before redirecting the user, aligning the redirect behavior with the asynchronous nature of the logout implementation.

Changes:

  • Make handleLogout asynchronous.
  • Await logout() before performing either an HTTP remote-user logout redirect or navigating to /login.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ui/leafwiki-ui/src/components/UserToolbar.tsx
@perber
perber force-pushed the fix/await-logout branch from 7073247 to 9339821 Compare May 24, 2026 01:48
@perber
perber merged commit 4a1aeeb into main May 24, 2026
6 checks passed
@perber
perber deleted the fix/await-logout branch May 24, 2026 02:00
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.

2 participants