@devries-cameron20 / t3code-1 / commits / 97009b049a
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(server): print pairing credential expiry as ISO timestamp (#14128)

Kevin Rajan committed Oct 9, 2026 at 22:14 UTC 97009b049a13fac5be5bee13a34b04cd6b87a7e7
2 files changed +3 -1
apps/server/src/cliAuthFormat.test.ts
+2
@@ -23,6 +23,8 @@ it("formats issued pairing credentials with the secret and optional pair URL", (
23
24 expect(output).toContain("secret-pairing-token");
25 expect(output).toContain("https://example.com/pair#token=secret-pairing-token");
26 + expect(output).toContain("Expires at: 2026-04-08T10:00:00.000Z");
27 + expect(output).not.toContain("DateTime.Utc");
28 });
29
30 it("formats pairing listings without exposing the secret token", () => {
apps/server/src/cliAuthFormat.ts
+1 -1
@@ -61,7 +61,7 @@ export function formatIssuedPairingCredential(
61 `Issued client pairing token ${credential.id}.`,
62 `Token: ${credential.credential}`,
63 ...(pairUrl ? [`Pair URL: ${pairUrl}`] : []),
64 - `Expires at: ${credential.expiresAt}`,
64 + `Expires at: ${toIsoString(credential.expiresAt)}`,
65 ].join(newline) + newline
66 );
67 }