From e9b6980cede04d58ab526d53a3eec5bea55b0d2f Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Mon, 6 Jul 2026 23:32:24 -0700 Subject: [PATCH] Add device-login tip to T3 Connect auth prompt - Update the OAuth console message to mention `t3 connect login --device` - Improve guidance for headless and remote machines --- apps/server/src/cloud/CliTokenManager.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/server/src/cloud/CliTokenManager.ts b/apps/server/src/cloud/CliTokenManager.ts index de7bc8ca22..5634a0ca21 100644 --- a/apps/server/src/cloud/CliTokenManager.ts +++ b/apps/server/src/cloud/CliTokenManager.ts @@ -255,7 +255,14 @@ export const make = Effect.gen(function* () { authorizationUrl.searchParams.set("state", state); authorizationUrl.searchParams.set("code_challenge", challenge); authorizationUrl.searchParams.set("code_challenge_method", "S256"); - yield* Console.log(`Open this URL to authorize T3 Connect:\n${authorizationUrl.toString()}\n`); + yield* Console.log( + [ + `Open this URL to authorize T3 Connect:\n${authorizationUrl.toString()}`, + "", + "Tip: on a headless or remote machine (SSH, VPS), run `t3 connect login --device` instead.", + "", + ].join("\n"), + ); const code = yield* Deferred.await(callback).pipe( Effect.timeout(CLOUD_CLI_OAUTH_CALLBACK_TIMEOUT), Effect.catchTag("TimeoutError", (cause) =>