From 2c82bf28a659b45c895e3a8b5ba8c6369110e5b8 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Sat, 24 May 2025 22:05:11 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/cli/src/auth.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/cli/src/auth.ts b/packages/cli/src/auth.ts index 4a24e856..2db682d8 100644 --- a/packages/cli/src/auth.ts +++ b/packages/cli/src/auth.ts @@ -27,16 +27,11 @@ export async function auth({ const port = await getPort({ port: preferredPort }) const app = new Hono() - if (port !== preferredPort) { - throw new Error( - `Port ${preferredPort} is required to sign in with ${providerLabel}, but it is already in use.` - ) - } - const redirectUri = `http://localhost:${port}/callback/${provider}/success` let _resolveAuth: any let _rejectAuth: any + // NOTE: Promise.withResolvers requires Node.js 22+ const authP = new Promise((resolve, reject) => { _resolveAuth = resolve _rejectAuth = reject