diff --git a/frontend/app/api/auth/[[...nextauth]]/route.ts b/frontend/app/api/auth/[[...nextauth]]/route.ts index 95a572a9..42098da8 100644 --- a/frontend/app/api/auth/[[...nextauth]]/route.ts +++ b/frontend/app/api/auth/[[...nextauth]]/route.ts @@ -8,9 +8,9 @@ const handler = NextAuth({ secret: process.env.NEXTAUTH_SECRET as string, providers: [ AzureADProvider({ - clientId: process.env.AZURE_AD_DEVELOPMENT_CLIENT_ID!, - clientSecret: process.env.AZURE_AD_DEVELOPMENT_CLIENT_SECRET!, - tenantId: process.env.AZURE_AD_DEVELOPMENT_TENANT_ID!, + clientId: process.env.AZURE_AD_CLIENT_ID_DEVELOPMENT!, + clientSecret: process.env.AZURE_AD_CLIENT_SECRET_DEVELOPMENT!, + tenantId: process.env.AZURE_AD_CLIENT_ID_DEVELOPMENT!, authorization: { params: { scope: 'openid profile email user.Read' } } }) ],