site/auth.ts

11 lines
310 B
TypeScript
Raw Normal View History

2025-01-06 16:35:53 -08:00
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
],
})