judge4c-old-2/src/auth.ts

10 lines
300 B
TypeScript

import NextAuth from "next-auth";
import { prisma } from "@/lib/prisma";
import GitHub from "next-auth/providers/github";
import { PrismaAdapter } from "@auth/prisma-adapter";
export const { handlers, signIn, signOut, auth } = NextAuth({
adapter: PrismaAdapter(prisma),
providers: [GitHub],
});