Skip to content

fix(auth): paired devices renew their sessions instead of expiring - #188

Merged
ggfincke merged 1 commit into
mainfrom
fix/paired-session-expiry
Nov 24, 2026
Merged

ggfincke merged 1 commit into
mainfrom
fix/paired-session-expiry

Conversation

@ggfincke

Copy link
Copy Markdown
Owner

Devices paired over Tailscale or LAN held a fixed 30 day bearer token, so the Duo and Mac got logged out of furnace with no way to renew. This ports upstream's renewal (t3code dd512d86c5, e396bb2e26, and the in-place session re-read from eac011439a) without any T3 Connect or relay code, so paired clients now hold a device-bound DPoP token that renews while in use, stays revocable, and falls back to bearer on hosts or origins that can't use device keys. It affects the server, Mac desktop, iPhone, and browser pairing over direct and tailnet routes, adds no outbound requests or data migration, and leaves furnace-first behavior, approvals, providers, and 456code identity unchanged. I verified it with focused tests and a live run of the real server and client runtime behind an HTTPS proxy that mimics Tailscale Serve, but not in the installed iPhone or Mac apps, and existing devices need one re-pair after updating.

Claude Opus 5.5 in Claude Code

https://claude.ai/code/session_01Ty8XE4o5owXdNytd9N92QG

Direct and tailnet pairings held a fixed 30 day bearer token, so a device
in regular use was logged out with no way to renew. Paired clients now hold
a token bound to a device key that renews while in use and stays revocable.
Hosts or origins that cannot use device keys keep the bearer path.

Ports upstream t3code dd512d86c5 (PR 37980), e396bb2e26 (PR 37990), and the
in-place session re-read from eac011439a (PR 38410), without T3 Connect or
relay code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ty8XE4o5owXdNytd9N92QG
@ggfincke
ggfincke merged commit e10da2e into main Nov 24, 2026
15 checks passed
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.

1 participant