-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAuthRoutes.tsx
More file actions
22 lines (20 loc) · 1019 Bytes
/
AuthRoutes.tsx
File metadata and controls
22 lines (20 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { Navigate, Route, Routes } from 'react-router-dom';
import Login from '@/views/Login';
import PassKeyLogin from '@/views/PassKeyLogin';
import PasskeyRegistration from '@/views/PassKeyRegistration';
import PhoneRegistration from '@/views/PhoneRegistration';
import EmailRegistration from '@/views/EmailRegistration';
import VerifyMagicLink from '@/views/VerifyMagicLink';
import MagicLinkSent from './components/MagicLinkSent';
export const AuthRoutes = () => (
<Routes>
<Route path="/login" element={<Login />} />
<Route path="/passKeyLogin" element={<PassKeyLogin />} />
<Route path="/verifyPhoneOTP" element={<PhoneRegistration />} />
<Route path="/verifyEmailOTP" element={<EmailRegistration />} />
<Route path="/verify-magiclink" element={<VerifyMagicLink />} />
<Route path="/registerPasskey" element={<PasskeyRegistration />} />
<Route path="/magic-link-sent" element={<MagicLinkSent />} />
<Route path="*" element={<Navigate to="/login" replace />} />
</Routes>
);