# UseAuthReturn

**Kind:** Interface

**Source:** [`atloria-monorepo/packages/ui-react/src/hooks/useAuth.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/ui-react/src/hooks/useAuth.ts#L10)

Return type for useAuth hook

## Properties

| Property | Type |
|---|---|
| `user` | `User | null` |
| `loading` | `boolean` |
| `error` | `Error | null` |
| `login` | `(email: string, password: string) => Promise<void>` |
| `logout` | `() => Promise<void>` |
| `register` | `(data: { email: string; password: string; name: string }) => Promise<void>` |
| `isAuthenticated` | `boolean` |
