Last updated 2 months ago
An Auth Guard protects specific pages by ensuring only authenticated users can access them.
Auth Guard is configured at src/utils/route-guard/AuthGuard.tsx To use it just wrap component with AuthGuard, same as below.
src/utils/route-guard/AuthGuard.tsx
<AuthProvider> <AuthGuard> ... <YourReactComponent /> ... </AuthGuard> </AuthProvider>