✨ 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:
7
src/modules/auth/index.ts
Normal file
7
src/modules/auth/index.ts
Normal 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);
|
||||
Reference in New Issue
Block a user