mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-05-18 15:26:36 +00:00
feat(auth): add GitHub provider for authentication
This commit is contained in:
parent
6a0937390c
commit
89d9dbd01e
@ -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],
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user