diff --git a/src/cli/commands/auth/login.ts b/src/cli/commands/auth/login.ts index 29710c765..0cbe19808 100644 --- a/src/cli/commands/auth/login.ts +++ b/src/cli/commands/auth/login.ts @@ -28,8 +28,8 @@ async function generateAndDisplayDeviceCode(): Promise { ); log.info( - `Your code is: ${chalk.bold(deviceCodeResponse.userCode)}` + - `\nPlease visit: ${deviceCodeResponse.verificationUriComplete}` + `Verification code: ${chalk.bold(deviceCodeResponse.userCode)}` + + `\nPlease confirm this code at: ${deviceCodeResponse.verificationUri}` ); return deviceCodeResponse; @@ -44,7 +44,7 @@ async function waitForAuthentication( try { await runTask( - "Waiting for you to complete authentication...", + "Waiting for authentication...", async () => { await pWaitFor( async () => { diff --git a/src/core/auth/schema.ts b/src/core/auth/schema.ts index abe39a2d8..c7eed6801 100644 --- a/src/core/auth/schema.ts +++ b/src/core/auth/schema.ts @@ -16,7 +16,6 @@ export const DeviceCodeResponseSchema = z device_code: z.string().min(1, "Device code cannot be empty"), user_code: z.string().min(1, "User code cannot be empty"), verification_uri: z.url("Invalid verification URL"), - verification_uri_complete: z.url("Invalid complete verification URL"), expires_in: z .number() .int() @@ -30,7 +29,6 @@ export const DeviceCodeResponseSchema = z deviceCode: data.device_code, userCode: data.user_code, verificationUri: data.verification_uri, - verificationUriComplete: data.verification_uri_complete, expiresIn: data.expires_in, interval: data.interval, }));