From 69da8bc3db22632d8a5cbae8ab3c5d4bc42665af Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 10 Sep 2024 04:05:47 +0100 Subject: [PATCH] test --- src/app/api/auth/[...nextauth]/route.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/app/api/auth/[...nextauth]/route.ts b/src/app/api/auth/[...nextauth]/route.ts index affacd8..0e8abfb 100644 --- a/src/app/api/auth/[...nextauth]/route.ts +++ b/src/app/api/auth/[...nextauth]/route.ts @@ -15,10 +15,6 @@ const { type OauthProvider = "google"; -const baseUrl = process.env.VERCEL_URL - ? `https://${process.env.VERCEL_URL}` - : "https://assessment-model-git-main-hestiahomes.vercel.app/"; // Fallback for local development - // TODO: handle token expiration // https://next-auth.js.org/v3/tutorials/refresh-token-rotation // propertly set options too @@ -46,7 +42,8 @@ export const AuthOptions: NextAuthOptions = { params: { scope: `https://${process.env.AZURE_AD_B2C_TENANT_NAME}.onmicrosoft.com/api/demo.read https://${process.env.AZURE_AD_B2C_TENANT_NAME}.onmicrosoft.com/api/demo.write offline_access openid`, prompt: "consent", - redirect_uri: `${baseUrl}/api/auth/callback/azure-ad-b2c`, + redirect_uri: + "https://assessment-model-git-main-hestiahomes.vercel.app/api/auth/callback/azure-ad-b2c", }, }, }),