✨ 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:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user