Repository navigation
fix(auth): paired devices renew their sessions instead of expiring - #188
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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