Kind: Interface
Source: atloria-monorepo/packages/ui-react/src/hooks/useAuth.ts
Return type for useAuth hook
Properties
| Property | Type |
|---|---|
user | `User |
loading | boolean |
error | `Error |
login | (email: string, password: string) => Promise<void> |
logout | () => Promise<void> |
register | (data: { email: string; password: string; name: string }) => Promise<void> |
isAuthenticated | boolean |
Was this page helpful?