mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-08-23 23:02:17 +10:00
10 lines
349 B
TypeScript
10 lines
349 B
TypeScript
import { createFileRoute, redirect } from "@tanstack/react-router";
|
|
import { VerifyTwoFactorPage } from "@/features/auth/pages/verify-2fa";
|
|
|
|
export const Route = createFileRoute("/auth/verify-2fa")({
|
|
component: VerifyTwoFactorPage,
|
|
beforeLoad: ({ context }) => {
|
|
if (context.session) throw redirect({ to: "/dashboard", replace: true });
|
|
},
|
|
});
|