mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 15:26:33 +00:00
10 lines
296 B
TypeScript
10 lines
296 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, auth, signIn, signOut } = NextAuth({
|
|
adapter: PrismaAdapter(prisma),
|
|
providers: [GitHub],
|
|
});
|