set new route login through OTP

This commit is contained in:
Pramod Mahajan 2025-06-07 17:40:49 +05:30
parent beeba834e2
commit 8640a96901

View File

@ -37,6 +37,7 @@ import LegalInfoCard from "../pages/TermsAndConditions/LegalInfoCard";
// Protected Route Wrapper // Protected Route Wrapper
import ProtectedRoute from "./ProtectedRoute"; import ProtectedRoute from "./ProtectedRoute";
import Directory from "../pages/Directory/Directory"; import Directory from "../pages/Directory/Directory";
import LoginWithOtp from "../pages/authentication/LoginWithOtp";
const router = createBrowserRouter( const router = createBrowserRouter(
[ [
@ -44,6 +45,7 @@ const router = createBrowserRouter(
element: <AuthLayout />, element: <AuthLayout />,
children: [ children: [
{path: "/auth/login", element: <LoginPage />}, {path: "/auth/login", element: <LoginPage />},
{path: "/auth/login-otp", element: <LoginWithOtp />},
{ path: "/auth/reqest/demo", element: <RegisterPage /> }, { path: "/auth/reqest/demo", element: <RegisterPage /> },
{ path: "/auth/forgot-password", element: <ForgotPasswordPage /> }, { path: "/auth/forgot-password", element: <ForgotPasswordPage /> },
{ path: "/reset-password", element: <ResetPasswordPage /> }, { path: "/reset-password", element: <ResetPasswordPage /> },