create oauth login

Create authentication with oAuth using a third-party vendor. Currently, only GitHub is available, but more will be added
in the future.
This commit is contained in:
Rafi Arrafif
2025-08-05 17:11:36 +07:00
parent 88257d0eee
commit 419b5b0ae4
10 changed files with 132 additions and 4 deletions

View File

@ -0,0 +1,7 @@
import Elysia from "elysia";
import { githubRequestController } from "./controllers/githubRequest.controller";
import { githubCallbackController } from "./controllers/githubCallback.controller";
export const authModule = new Elysia({ prefix: "/auth" })
.get("/github", githubRequestController)
.get("/github/callback", githubCallbackController);