From 89d9dbd01ea8632772c18c2c8c36c442491b7d5f Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Wed, 12 Mar 2025 15:18:31 +0800 Subject: [PATCH] feat(auth): add GitHub provider for authentication --- src/auth.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/auth.ts b/src/auth.ts index ac4684b..2cb2644 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -1,8 +1,9 @@ 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: [], + providers: [GitHub], });