feat: prisma, postgresql, and upgrade to auth.js@beta

This commit is contained in:
trafficlunar 2025-03-29 21:55:04 +00:00
parent 54fee71491
commit 7b799405dc
12 changed files with 720 additions and 147 deletions

View file

@ -1,21 +1,3 @@
import NextAuth from "next-auth";
import Discord from "next-auth/providers/discord";
import Github from "next-auth/providers/github";
import { handlers } from "@/lib/auth";
const handler = NextAuth({
pages: {
signIn: "/login",
},
providers: [
Discord({
clientId: process.env.DISCORD_ID!,
clientSecret: process.env.DISCORD_SECRET!,
}),
Github({
clientId: process.env.GITHUB_ID!,
clientSecret: process.env.GITHUB_SECRET!,
}),
],
});
export { handler as GET, handler as POST };
export const { GET, POST } = handlers;