Add env variables & auth.js
This commit is contained in:
12
src/auth.ts
Normal file
12
src/auth.ts
Normal 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,
|
||||
}),
|
||||
],
|
||||
})
|
Reference in New Issue
Block a user