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

9
src/auth.config.ts Normal file
View File

@@ -0,0 +1,9 @@
import { NextAuthConfig } from "next-auth";
import github from "next-auth/providers/github";
export const authConfig: NextAuthConfig = {
providers: [github],
callbacks: {
authorized: ({ auth }) => !!auth,
},
};