feat: create token validation endpoint

This commit is contained in:
Rafi Arrafif
2026-01-20 11:27:52 +07:00
parent 22428c720c
commit 20b371dbf6
3 changed files with 35 additions and 0 deletions

View File

@ -5,8 +5,10 @@ import { googleRequestController } from "./controllers/googleRequest.controller"
import { googleCallbackController } from "./controllers/googleCallback.controller";
import { getOauthProvidersController } from "./controllers/getOauthProviders.controller";
import { getCallbackProviderUrlController } from "./controllers/getCallbackProviderUrl.controller";
import { tokenValidationController } from "./controllers/tokenValidation.controller";
export const authModule = new Elysia({ prefix: "/auth" })
.post("/token/validate", tokenValidationController)
.get("/providers", getOauthProvidersController)
.get("/providers/:name/callback", getCallbackProviderUrlController)
.get("/github", githubRequestController)