feat(desktop): keep the login tokens only in the OS keychain (#105 step 2) #445
Merged
jared
merged 1 commits from 2026-10-23 20:59:25 -04:00
feat/keychain-session into lotus
No Reviewers
Labels
Clear labels
a11y
area: appearance
area: auth-session
area: build-ci
area: calls
area: desktop
area: media
area: messaging
area: mobile
area: moderation
area: navigation
area: notifications
area: settings
area: threads
bug
dependencies
docs
duplicate
enhancement
help wanted
invalid
needs-human-review
performance
planning
priority: critical
priority: high
priority: low
priority: medium
qa
question
research
security
tech-debt
ux
wontfix
Accessibility: keyboard, screen reader, contrast, motion
Client area: appearance
Client area: auth-session
Client area: build-ci
Client area: calls
Client area: desktop
Client area: media
Client area: messaging
Client area: mobile
Client area: moderation
Client area: navigation
Client area: notifications
Client area: settings
Client area: threads
Something is not working
Third-party package versions and advisories
README / LOTUS_* docs wrong or missing
This issue or pull request already exists
New feature
Need some help
Something is wrong
Re-render storms, leaks, heavy work on hot paths
Data loss, security hole, or crash on a main path
Broken feature or serious usability problem
Minor issue or polish
Wrong behaviour in an edge case or notable degradation
Manual QA: shipped, needs a human in a real environment
More information is needed
XSS, unsafe URLs, data leaks, auth/session
Code health, dead code, fragile patterns
Usability or visual inconsistency
This won't be fixed
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: LotusGuild/cinny#445
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Fixes #105 (step 2). Owner decision 2026-10-23: do it, with the fallback.
On the desktop app with a working keychain (Windows Credential Manager), the login tokens leave localStorage. Web, Linux and older desktop builds are unchanged.
Design
cinny_session_v1withtokensIn: 'keychain': user, device, server, expiry, OIDC metadata) and no legacy token keys.getFallbackSession()and its ~20 synchronous callers are untouched.Verified
tokensIn: keychain, no token in the blob or legacy keys, the token in Credential Manager), and after a restart the app was still signed in. All 13 smoke checks passed. The check is now part of the Windows smoke test (cinny-desktop PR).missing; an unreadable keychain →error; another device's tokens never pair; logout clears memory, disk and the keychain. The full suite (1,418) passes, and lint is at 29.Rollback note: a desktop build older than this would find no tokens in localStorage after migrating, i.e. it would show the login screen. Desktop only auto-updates forward, so this only matters for a manual downgrade.
🤖 Generated with Claude Code
https://claude.ai/code/session_017PCb59uY3UKqDqt7B6hzd5