Skip to content

Instantly share code, notes, and snippets.

@MoritzKn
Created August 11, 2022 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MoritzKn/e3c485fcef04a04170ac14780fa0c6bc to your computer and use it in GitHub Desktop.
Save MoritzKn/e3c485fcef04a04170ac14780fa0c6bc to your computer and use it in GitHub Desktop.
import NextAuth from "next-auth";
import AzureADProvider from "next-auth/providers/azure-ad";
// This really is the default config, the issue only occuries in combination
// with the Azure AD config and I can not give you my secrets.
// Please keep reading the issue, thank you :)
export default NextAuth({
providers: [
AzureADProvider({
clientId: process.env.AZURE_AD_CLIENT_ID,
clientSecret: process.env.AZURE_AD_CLIENT_SECRET,
tenantId: process.env.AZURE_AD_TENANT_ID,
}),
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment