Github auth

This commit is contained in:
2025-12-28 21:24:44 +01:00
parent 09d21e160c
commit 568d894061
7 changed files with 247 additions and 33 deletions
+13
View File
@@ -0,0 +1,13 @@
import { AuthorizationCode } from "simple-oauth2";
export const client = new AuthorizationCode({
client: {
id: process.env.GITHUB_CLIENT_ID!,
secret: process.env.GITHUB_CLIENT_SECRET!,
},
auth: {
tokenHost: "https://github.com",
tokenPath: "/login/oauth/access_token",
authorizePath: "/login/oauth/authorize",
},
});