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
This commit is contained in:
1 parent
87c028fd05
commit
e9b6980ced
1 file changed
+8
-1
@@ -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) =>
|
||||
|
||||
Reference in new issue
Block a user