diff --git a/app/(auth)/auth/callback/[...provider]/page.tsx b/app/(auth)/auth/callback/[...provider]/page.tsx
index 3349c14..e1c9e89 100644
--- a/app/(auth)/auth/callback/[...provider]/page.tsx
+++ b/app/(auth)/auth/callback/[...provider]/page.tsx
@@ -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 ;
+const page = ({ params, searchParams }: ParamProps) => {
+ return ;
};
export default page;
diff --git a/features/oauth-callback/pages/callbackHandler.tsx b/features/oauth-callback/pages/callbackHandler.tsx
index e38ee3b..7e729bb 100644
--- a/features/oauth-callback/pages/callbackHandler.tsx
+++ b/features/oauth-callback/pages/callbackHandler.tsx
@@ -1,12 +1,17 @@
"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 = () => {
+const OauthCallbackHandler = ({
+ callbackData,
+}: {
+ callbackData: ParamProps;
+}) => {
/**
* 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.
@@ -16,7 +21,7 @@ const OauthCallbackHandler = () => {
const componentFlowList = {
securityCheckup: ,
securityCheckupFailed: ,
- proceedCallback: ,
+ proceedCallback: ,
};
// State to set the current page component
diff --git a/features/oauth-callback/types/ParamProps.ts b/features/oauth-callback/types/ParamProps.ts
new file mode 100644
index 0000000..a2161f3
--- /dev/null
+++ b/features/oauth-callback/types/ParamProps.ts
@@ -0,0 +1,4 @@
+export interface ParamProps {
+ params: { provider: string[] };
+ searchParams: { [key: string]: string | string[] | undefined };
+}
diff --git a/features/oauth-callback/ui/LoadingProcess.tsx b/features/oauth-callback/ui/LoadingProcess.tsx
index 16517cb..381afc9 100644
--- a/features/oauth-callback/ui/LoadingProcess.tsx
+++ b/features/oauth-callback/ui/LoadingProcess.tsx
@@ -2,8 +2,9 @@
import { CircularProgress } from "@heroui/react";
import React from "react";
+import { ParamProps } from "../types/ParamProps";
-const LoadingProcess = () => {
+const LoadingProcess = ({ callbackData }: { callbackData: ParamProps }) => {
return (
@@ -12,6 +13,9 @@ const LoadingProcess = () => {
Your request is being processed
+
+ {JSON.stringify(callbackData)}
+
);