feat: add new route to get client callback

This new route serves to find the client callback after successfully logging in from the provider page. This is done so that the callback becomes more flexible and can be changed at any time.
This commit is contained in:
Rafi Arrafif
2026-01-08 17:22:05 +07:00
parent d8e8ec3fa7
commit c1d5d1692b
4 changed files with 39 additions and 1 deletions

View File

@ -4,9 +4,11 @@ import { githubCallbackController } from "./controllers/githubCallback.controlle
import { googleRequestController } from "./controllers/googleRequest.controller";
import { googleCallbackController } from "./controllers/googleCallback.controller";
import { getOauthProvidersController } from "./controllers/getOauthProviders.controller";
import { getCallbackProviderUrlController } from "./controllers/getCallbackProviderUrl.controller";
export const authModule = new Elysia({ prefix: "/auth" })
.get("/providers", getOauthProvidersController)
.get("/providers/:name/callback", getCallbackProviderUrlController)
.get("/github", githubRequestController)
.get("/github/callback", githubCallbackController)
.get("/google", googleRequestController)