add: GitHub authentication

This commit is contained in:
Dominik Natter
2025-03-26 12:51:29 +01:00
parent b4b24410c2
commit 18ab55600b
12 changed files with 96 additions and 10275 deletions

10
src/auth.ts Normal file
View File

@@ -0,0 +1,10 @@
import payloadConfig from "@payload-config";
import NextAuth from "next-auth";
import { withPayload } from "payload-authjs";
import { authConfig } from "./auth.config";
export const { handlers, signIn, signOut, auth } = NextAuth(
withPayload(authConfig, {
payloadConfig,
}),
);