This commit is contained in:
natib21
2026-07-10 11:25:59 +00:00
parent 2696ca7498
commit e6e44e773b
1146 changed files with 200266 additions and 90527 deletions

View File

@@ -1,20 +1,20 @@
import { useSearchParams } from "react-router-dom";
import { isComplaintFaydaState } from "@/shared/utils/faydaOidc";
import ComplaintCallbackPage from "@/complaints/pages/ComplaintCallbackPage";
import ExternalPortalCallback from "@/external-portal/components/Registration/ExternalPortalCallBack";
/**
* Single FAYDA OIDC callback entry point.
* Fayda only allows whitelisted redirect URIs (e.g. /callback) — route
* internally based on the `state` param sent during authorization.
*/
export default function FaydaCallbackDispatcher() {
const [searchParams] = useSearchParams();
const state = searchParams.get("state");
if (isComplaintFaydaState(state)) {
return <ComplaintCallbackPage />;
}
return <ExternalPortalCallback />;
}
import { useSearchParams } from "react-router-dom";
import { isComplaintFaydaState } from "@/shared/utils/faydaOidc";
import ComplaintCallbackPage from "@/complaints/pages/ComplaintCallbackPage";
import ExternalPortalCallback from "@/external-portal/components/Registration/ExternalPortalCallBack";
/**
* Single FAYDA OIDC callback entry point.
* Fayda only allows whitelisted redirect URIs (e.g. /callback) — route
* internally based on the `state` param sent during authorization.
*/
export default function FaydaCallbackDispatcher() {
const [searchParams] = useSearchParams();
const state = searchParams.get("state");
if (isComplaintFaydaState(state)) {
return <ComplaintCallbackPage />;
}
return <ExternalPortalCallback />;
}