Skip to content

[200 MRG] Fix logout bug #20

@TUPM96

Description

@TUPM96

Summary

Fix the logout bug in the authenticated user experience.

Bounty

  • Reward: 200 MRG
  • Bounty type: bug bounty
  • Area: authentication/logout

Scope

Reproduce the logout problem, identify whether it is caused by frontend state, stored token/session cleanup, backend logout API behavior, navigation, or dashboard state refresh, then fix the smallest safe surface.

Expected Behavior

When a logged-in user clicks logout:

  • The backend logout request should complete or fail gracefully.
  • The local token/session should be cleared reliably.
  • The UI should immediately reflect the logged-out state.
  • Authenticated dashboard data should be cleared from the visible UI.
  • Navigation should not leave the user stuck on a broken authenticated screen.
  • Re-login should work normally after logout.

Acceptance Criteria

  • Reproduce the logout bug before fixing it.
  • Fix logout behavior without regressing login, OAuth token handling, dashboard loading, or public pages.
  • Include before/after evidence, such as screenshots, a short video/GIF, console logs, or network logs.
  • Include relevant test/build output. At minimum run npm test and npm run build:local for frontend-only changes.
  • If backend code changes are needed, include go test ./... from backend or explain any test gap.
  • Verify at least one desktop viewport and one mobile viewport.

Claim Requirement

Before opening a PR, star this repository and claim the bounty in the Claim Token issue. Link the claim comment in the PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    authAuthentication, login, logout, and account session flows.bountyEligible work for the MergeOS bounty programbounty: bugBug-fix bounty work.bugSomething isn't workingevidence: missingPR needs screenshot, GIF, video, or other visual evidence.frontendFrontend UI and interaction work.qaQuality assurance, regression testing, and verification work.reward:200-mrgBounty reward is 200 MRG tokens.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions