add new oauth provider

add google idconnect as new auth provider
This commit is contained in:
Rafi Arrafif
2025-08-06 15:31:24 +07:00
parent 419b5b0ae4
commit 0d71710b14
7 changed files with 121 additions and 1 deletions

View File

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