add: authentication provider microsoft login #3
@@ -2,9 +2,15 @@
|
|||||||
// auth.config.ts
|
// auth.config.ts
|
||||||
import github from "next-auth/providers/github";
|
import github from "next-auth/providers/github";
|
||||||
import { NextAuthConfig } from 'next-auth'
|
import { NextAuthConfig } from 'next-auth'
|
||||||
|
import MicrosoftEntraID from "next-auth/providers/microsoft-entra-id"
|
||||||
|
|
||||||
export const authConfig: NextAuthConfig = {
|
export const authConfig: NextAuthConfig = {
|
||||||
providers: [
|
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,
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user