> 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/auth-guard.md).

# Auth Guard

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.

```typescript
<AuthProvider>
    <AuthGuard>
        ...
        <YourReactComponent />
        ...
    </AuthGuard>
</AuthProvider>
```
