👔 create callback forwader

create a handler to forward callback requests from the OAuth provider to the main backend system.
This commit is contained in:
2025-08-31 22:02:31 +07:00
parent e804f259b7
commit 2bcd2a4ead
6 changed files with 24 additions and 31 deletions

View File

@ -1,17 +1,12 @@
"use client";
import { ParamProps } from "../types/ParamProps";
import { redirect } from "next/navigation";
import React, { useEffect, useState } from "react";
import SecurityCheckup from "@/shared/auth/ui/SecurityCheckup";
import SecurityCheckupFailed from "@/shared/auth/ui/SecurityCheckupFailed";
import LoadingProcess from "../ui/LoadingProcess";
const OauthCallbackHandler = ({
callbackData,
}: {
callbackData: ParamProps;
}) => {
const OauthCallbackHandler = () => {
/**
* Create a lit component that will be used in popp, consisting of 3 component flows:
* 1. When the user opens it, a browser environment check will be performed.
@ -21,7 +16,7 @@ const OauthCallbackHandler = ({
const componentFlowList = {
securityCheckup: <SecurityCheckup />,
securityCheckupFailed: <SecurityCheckupFailed />,
proceedCallback: <LoadingProcess callbackData={callbackData} />,
proceedCallback: <LoadingProcess />,
};
// State to set the current page component