diff --git a/src/auth.config.ts b/src/auth.config.ts index 47c07fc..dbf68d9 100644 --- a/src/auth.config.ts +++ b/src/auth.config.ts @@ -2,9 +2,15 @@ // auth.config.ts import github from "next-auth/providers/github"; import { NextAuthConfig } from 'next-auth' +import MicrosoftEntraID from "next-auth/providers/microsoft-entra-id" export const authConfig: NextAuthConfig = { providers: [ - github, // <-- Add your provider here + MicrosoftEntraID({ + clientId: process.env.AUTH_MICROSOFT_ENTRA_ID_ID, + clientSecret: process.env.AUTH_MICROSOFT_ENTRA_ID_SECRET, + issuer: process.env.AUTH_MICROSOFT_ENTRA_ID_ISSUER, + }), + github, ], };