From 0e3c025f4f0942e97bcf91c2d2426be96671ddec Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 10 Sep 2024 16:32:11 +0100 Subject: [PATCH] maybe got ms integration working --- src/app/api/auth/[...nextauth]/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/api/auth/[...nextauth]/route.ts b/src/app/api/auth/[...nextauth]/route.ts index b6aea4e..8ef6fa3 100644 --- a/src/app/api/auth/[...nextauth]/route.ts +++ b/src/app/api/auth/[...nextauth]/route.ts @@ -40,7 +40,7 @@ export const AuthOptions: NextAuthOptions = { primaryUserFlow: AZURE_AD_B2C_PRIMARY_USER_FLOW, authorization: { 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`, + scope: "openid profile offline_access", prompt: "consent", }, },