🚩 (flags) complete github signup process

This commit is contained in:
2025-09-07 23:17:00 +07:00
parent 8861b0997d
commit a2a46ec933
3 changed files with 83 additions and 8 deletions

View File

@ -2,12 +2,15 @@ import { Context } from "elysia";
import { returnWriteResponse } from "../../../helpers/callback/httpResponse";
import { githubCallbackService } from "../services/http/githubCallback.service";
import { mainErrorHandler } from "../../../helpers/error/handler";
import { getUserHeaderInformation } from "../../../helpers/http/userHeader/getUserHeaderInformation";
export const githubCallbackController = async (
ctx: Context & { query: { code: string } }
ctx: Context & { query: { code: string; callbackURI: string } }
) => {
try {
const userData = await githubCallbackService(ctx.query.code);
const userHeaderInfo = getUserHeaderInformation(ctx);
const userData = await githubCallbackService(ctx.query, userHeaderInfo);
return returnWriteResponse(
ctx.set,
200,