Skip to content

Stay signed in: sliding sessions, retry instead of logout, Touch ID lock - #3

Merged
yairixStudio merged 3 commits into
mainfrom
fix/stay-signed-in
Oct 8, 2026
Merged

yairixStudio merged 3 commits into
mainfrom
fix/stay-signed-in

Conversation

@yairixStudio

Copy link
Copy Markdown
Owner

Users were signed out at random: restoring the session wiped the token on any error from /auth/me (e.g. the server still starting), and tokens hard-expired after 30 days.

  • Session restore signs out only on 401/403/404; network errors and 5xx keep the token and retry with backoff.
  • Year-long sliding sessions: /auth/me returns a fresh token once a day; revocation (password change, forced reset) still applies.
  • Case-insensitive email for login and duplicate checks.
  • Desktop: Touch ID prompt on app start (default on, toggle in the Clockwize menu), skipped in automated tests.

Tests: 446 server · 380 client · 31 e2e · 5 desktop.

🤖 Generated with Claude Code

Clockwize and others added 3 commits October 8, 2026 10:12
…Touch ID lock

Users were being signed out at random: restoring the session wiped the
token on any error from /auth/me, including a server that was still
starting or restarting, and tokens hard-expired after 30 days.

- Restoring the session signs out only when the server rejects it
  (401/403/404); network errors and 5xx keep the token and retry with
  backoff ("מתחבר לשרת…")
- Session tokens last a year and slide: /auth/me swaps day-old tokens for
  fresh ones; revocation (password change, forced reset) still applies
- Email matching is case-insensitive for login and duplicate checks
- Desktop app: optional Touch ID prompt when the app starts (on by
  default, toggle in the Clockwize menu), skipped in automated tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
iCloud Drive created identical "file 2.js" copies of new files, which got
committed. They are byte-for-byte duplicates; .gitignore now skips them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a macOS CI runner the popover test stalled and the app's quit then
exceeded the worker teardown timeout. Show the popover without
activation, bound that step, and kill the app if quitting hangs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yairixStudio
yairixStudio merged commit 8d30ffb into main Oct 8, 2026
8 checks passed
@yairixStudio
yairixStudio deleted the fix/stay-signed-in branch October 8, 2026 07:41
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