create a type and implement it in props that pass callback data from root to the component that will process the request.
10 lines
342 B
TypeScript
10 lines
342 B
TypeScript
import OauthCallbackHandler from "@/features/oauth-callback/pages/callbackHandler";
|
|
import React from "react";
|
|
import { ParamProps } from "@/features/oauth-callback/types/ParamProps";
|
|
|
|
const page = ({ params, searchParams }: ParamProps) => {
|
|
return <OauthCallbackHandler callbackData={{ params, searchParams }} />;
|
|
};
|
|
|
|
export default page;
|