👔 forwarding callback data

create a type and implement it in props that pass callback data from root to the component that will process the
request.
This commit is contained in:
2025-08-27 22:47:55 +07:00
parent 1bf56603e0
commit 73c5bff44c
4 changed files with 19 additions and 10 deletions

View File

@ -1,13 +1,9 @@
import OauthCallbackHandler from "@/features/oauth-callback/pages/callbackHandler";
import React from "react";
import { ParamProps } from "@/features/oauth-callback/types/ParamProps";
interface PageProps {
params: { provider: string[] };
searchParams: { [key: string]: string | string[] | undefined };
}
const page = ({ params, searchParams }: PageProps) => {
return <OauthCallbackHandler />;
const page = ({ params, searchParams }: ParamProps) => {
return <OauthCallbackHandler callbackData={{ params, searchParams }} />;
};
export default page;