"use client"; import React from "react"; import { CircularProgress } from "@heroui/react"; import { SendCallbackToServer } from "../lib/sendCallbackToServer"; import { useParams } from "next/navigation"; import { useRunOnce } from "@/shared/hooks/useRunOnce"; const LoadingProcess = () => { // Access the URL parameters const params = useParams(); // Forward the callback response to the backend server useRunOnce("forwardCallbackResponseToBackend", async () => { try { await SendCallbackToServer( window.location.search, params.provider as string ); window.close(); } catch (error) { console.log(error); } }); return (

Please wait...

Your request is being processed

); }; export default LoadingProcess;