From 9c2e2f2847cbb2fd865caeff347912139a6f30ac Mon Sep 17 00:00:00 2001 From: sambokar Date: Thu, 27 Feb 2025 08:40:19 -0500 Subject: [PATCH] still trying to figure out what's going wrong. invalid url being thrown during auth --- frontend/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/auth.ts b/frontend/auth.ts index 13ff4ae8..43c360c9 100644 --- a/frontend/auth.ts +++ b/frontend/auth.ts @@ -28,7 +28,7 @@ export const { auth, handlers, signIn, signOut } = NextAuth({ } console.log('userEmail: ', userEmail); try { - const baseUrl = process.env.NEXTAUTH_URL! || process.env.AUTH_URL! || 'http://localhost:3000'; + const baseUrl = process.env.NEXTAUTH_URL || process.env.AUTH_URL || 'http://localhost:3000'; const customSigninUrl = new URL(`/api/customsignin?email=${encodeURIComponent(userEmail as string)}`, baseUrl); const response = await fetch(customSigninUrl.toString()); console.log('response: ', response);