Skip to content

Desktop logout: revoke active bearer session and return to signed-out state #2268

Closed

Description

@integry

User reports Logout does not work in desktop. Implement child PR based on and targeting 1950-epic-cross-platform-dsk (#1970), not main. Root read source: propr-ui/src/api/proprApi.ts logout uses window.proprDesktop.auth.logout(API_BASE_URL) then hash login; apps/desktop/src/ipc.ts authLogout calls desktop-session.ts cookie-session logout, whereas modern desktop uses CredentialService scoped bearer tokens. Diagnose current head; fix actual active account/profile sign-out through main-owned credential lifecycle. Invalidate renderer scope, cancel requests/socket, clear account-specific UI cache and notifications, remove/revoke correct local token (use existing durable revocation retry on offline failure), retain instance configuration and other account/profile credentials. Prevent auto-reconnect with revoked identity. Never global-clear all accounts or weaken session/CSRF/trusted sender protections. Handle errors visibly and do not report logged out while active bearer remains usable locally. Keep web logout behavior tested. Add regressions connected desktop, offline server, reload, stale requests, other profile unaffected. Coordinate with separate multi-account task: this PR owns logout lifecycle; keep independently mergeable. Link Closes this issue and parent #1970. Use ProPR implementation; no remote deployment or user profile reset.

Activity

  1. propr-dev commented on Sep 10, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-6-astra model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-6-astra
    • Branch: 2268/gpt-6-astra-desktop-logout-revoke-act-20260910-2009-f3x
    • Base Branch: 1950-epic-cross-platform-dsk
    • Worktree: issue-2268-20260910-2009-gpt-6-astra-f3x

    🔍 Track Task Execution

  2. added a commit that references this issue on Sep 10, 2026
  3. integry commented on Sep 10, 2026

    @integry
    OwnerAuthor

    Implemented in #2270, merged into desktop epic #1970 as e7d2a19. Combined account/logout regression verified locally: 60 UI/integration tests, 152 main/storage tests and native Electron two-account HTTP/socket smoke passed. Closing explicitly because the PR targets the epic branch rather than default main.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions