diff --git a/src/pages/api/auth/[...nextauth].ts b/src/pages/api/auth/[...nextauth].ts index 296c24aa..c2b21fd7 100644 --- a/src/pages/api/auth/[...nextauth].ts +++ b/src/pages/api/auth/[...nextauth].ts @@ -5,16 +5,13 @@ import Providers from "next-auth/providers"; const prisma = new PrismaClient(); -export const Auth = () => { - return NextAuth({ - providers: [ - Providers.GitHub({ - clientId: process.env.GITHUB_CLIENT_ID, - clientSecret: process.env.GITHUB_CLIENT_SECRET, - }), - ], - adapter: PrismaAdapter(prisma), - }); -}; - +export const Auth = NextAuth({ + providers: [ + Providers.GitHub({ + clientId: process.env.GITHUB_CLIENT_ID, + clientSecret: process.env.GITHUB_CLIENT_SECRET, + }), + ], + adapter: PrismaAdapter(prisma), +}); export default Auth;