mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-28 14:44:15 +00:00
feat: prisma, postgresql, and upgrade to auth.js@beta
This commit is contained in:
parent
54fee71491
commit
7b799405dc
12 changed files with 720 additions and 147 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue