mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
feat(auth): integrate PrismaAdapter with NextAuth for database integration
This commit is contained in:
parent
d3d280e618
commit
256a8614e3
@ -1,5 +1,8 @@
|
||||
import NextAuth from "next-auth"
|
||||
|
||||
export const { handlers, signIn, signOut, auth } = NextAuth({
|
||||
import NextAuth from "next-auth";
|
||||
import { prisma } from "@/lib/prisma";
|
||||
import { PrismaAdapter } from "@auth/prisma-adapter";
|
||||
|
||||
export const { handlers, auth, signIn, signOut } = NextAuth({
|
||||
adapter: PrismaAdapter(prisma),
|
||||
providers: [],
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user