feat(auth): add registration and verification browser flow

This commit is contained in:
TakuyaYagam1 committed 2026-10-07 13:02:16 +03:00
1 parent 391af7a1ef
commit b2322bc178
41 files changed
+2144 -81

No files matched your search

@@ -0,0 +1,13 @@
import { Navigate } from "react-router-dom";
import { getOnboardingDestination } from "../../entities/session";
import { PlaceholderPage } from "../../pages/placeholder";
import { useGetCurrentSession } from "../../shared/api/endpoints/identity/identity";
export function CandidateHomeRoute() {
const session = useGetCurrentSession();
if (!session.data) return <PlaceholderPage screen="candidateHome" />;
if (session.data.account.onboarding_step !== "completed") {
return <Navigate to={getOnboardingDestination(session.data.account)} replace />;
}
return <PlaceholderPage screen="candidateHome" />;
}