A Guest Guard restricts access to certain pages for authenticated users, redirecting them away from areas like login or signup if they’re already logged in. Ideal for enhancing user flow and preventing redundant actions.
The guest guard is configured at src/utils/route-guard/GuestGuard.tsx
We have used it in the same way as follows: