Skip to content

Commit

Permalink
fix: add .href for url string
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed Apr 19, 2024
1 parent 2c24184 commit a57ac30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/db/src/core/cli/commands/login/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ export async function cmd({
const loginUrl = new URL('/auth/cli/login', getAstroStudioUrl());
loginUrl.searchParams.set('returnTo', url);
console.log(`Opening the following URL in your browser...`);
console.log(cyan(loginUrl));
console.log(cyan(loginUrl.href));
console.log(`If something goes wrong, copy-and-paste the URL into your browser.`);
open(loginUrl);
open(loginUrl.href);
const spinner = ora('Waiting for confirmation...');
session = await promise;
spinner.succeed('Successfully logged in');
Expand Down

0 comments on commit a57ac30

Please sign in to comment.