diff --git a/src/app/api/auth/[...nextauth]/route.ts b/src/app/api/auth/[...nextauth]/route.ts index c30782c3..e9dd86bd 100644 --- a/src/app/api/auth/[...nextauth]/route.ts +++ b/src/app/api/auth/[...nextauth]/route.ts @@ -1,7 +1,7 @@ import NextAuth, { NextAuthOptions } from "next-auth"; import GoogleProvider from "next-auth/providers/google"; import AzureADB2CProvider from "next-auth/providers/azure-ad-b2c"; -import AzureADProvider from "next-auth/providers/azure-ad"; + import { db } from "@/app/db/db"; import { user as userTable, User } from "@/app/db/schema/users"; import { eq } from "drizzle-orm"; @@ -12,9 +12,6 @@ const { AZURE_AD_B2C_CLIENT_ID = "", AZURE_AD_B2C_CLIENT_SECRET = "", AZURE_AD_B2C_PRIMARY_USER_FLOW = "", - AZURE_AD_CLIENT_ID = "", - AZURE_AD_CLIENT_SECRET = "", - AZURE_AD_TENANT_ID = "", } = process.env; type OauthProvider = "google"; @@ -49,17 +46,6 @@ export const AuthOptions: NextAuthOptions = { }, }, }), - AzureADProvider({ - clientId: AZURE_AD_CLIENT_ID, - clientSecret: AZURE_AD_CLIENT_SECRET, - tenantId: AZURE_AD_TENANT_ID, - authorization: { - params: { - scope: "openid profile email", - prompt: "login", - }, - }, - }), ], pages: { signIn: "/", diff --git a/src/app/components/signin/MicrosoftSignInButton.jsx b/src/app/components/signin/MicrosoftSignInButton.jsx index e1549541..f53399f4 100644 --- a/src/app/components/signin/MicrosoftSignInButton.jsx +++ b/src/app/components/signin/MicrosoftSignInButton.jsx @@ -13,8 +13,7 @@ const MicrosoftSignInButton = () => {