Skip to content

Commit 19a33f3

Browse files
committed
chore(dev): add AzureADProvider to dev app
1 parent 424bd04 commit 19a33f3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/pages/api/auth/[...nextauth].ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import LineProvider from "next-auth/providers/line"
1717
import LinkedInProvider from "next-auth/providers/linkedin"
1818
import MailchimpProvider from "next-auth/providers/mailchimp"
1919
import DiscordProvider from "next-auth/providers/discord"
20+
import AzureADProvider from "next-auth/providers/azure-ad"
2021

2122
// import { PrismaAdapter } from "@next-auth/prisma-adapter"
2223
// import { PrismaClient } from "@prisma/client"
@@ -132,6 +133,11 @@ export default NextAuth({
132133
clientId: process.env.DISCORD_ID,
133134
clientSecret: process.env.DISCORD_SECRET,
134135
}),
136+
AzureADProvider({
137+
clientId: process.env.AZURE_AD_CLIENT_ID,
138+
clientSecret: process.env.AZURE_AD_CLIENT_SECRET,
139+
tenantId: process.env.AZURE_AD_TENANT_ID,
140+
}),
135141
],
136142
jwt: {
137143
encryption: true,
@@ -141,6 +147,6 @@ export default NextAuth({
141147
theme: {
142148
colorScheme: "auto",
143149
logo: "https://next-auth.js.org/img/logo/logo-sm.png",
144-
brandColor: "#1786fb"
150+
brandColor: "#1786fb",
145151
},
146152
})

0 commit comments

Comments
 (0)