> For the complete documentation index, see [llms.txt](https://phoenixcoded.gitbook.io/saasable/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://phoenixcoded.gitbook.io/saasable/admin-v1.0.0/development/guards/guest-guard.md).

# Guest Guard

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.\
\
**Guest guard** is configured at **`src/utils/route-guard/GuestGuard.tsx`**\
\
We have used it the same as follows:

```typescript
<GuestGuard>
      <AuthLayout>{children}</AuthLayout>
</GuestGuard>
```
