Add env variables & auth.js

This commit is contained in:
2024-07-19 09:10:46 -05:00
commit 950fa3967a
20 changed files with 5036 additions and 0 deletions

12
src/auth.ts Normal file
View File

@@ -0,0 +1,12 @@
import NextAuth from "next-auth"
import Entra from "next-auth/providers/microsoft-entra-id"
export const { handlers, auth, signIn, signOut } = NextAuth({
providers: [
Entra({
clientId: process.env.AUTH_MICROSOFT_ENTRA_ID_ID,
clientSecret: process.env.AUTH_MICROSOFT_ENTRA_ID_SECRET,
tenantId: process.env.AUTH_MICROSOFT_ENTRA_ID_TENANT_ID,
}),
],
})