11 lines
310 B
TypeScript
11 lines
310 B
TypeScript
|
import NextAuth from "next-auth"
|
||
|
import { PrismaAdapter } from "@auth/prisma-adapter"
|
||
|
import { prisma } from "@/lib/prisma"
|
||
|
import GitHub from "next-auth/providers/github";
|
||
|
|
||
|
export const { handlers, auth, signIn, signOut } = NextAuth({
|
||
|
adapter: PrismaAdapter(prisma) as any,
|
||
|
providers: [
|
||
|
GitHub
|
||
|
],
|
||
|
})
|