Skip to content

UseAuthReturn

reference
1 min readUpdated

Kind: Interface

Source: atloria-monorepo/packages/ui-react/src/hooks/useAuth.ts

Return type for useAuth hook

Properties

PropertyType
user`User
loadingboolean
error`Error
login(email: string, password: string) => Promise<void>
logout() => Promise<void>
register(data: { email: string; password: string; name: string }) => Promise<void>
isAuthenticatedboolean

Was this page helpful?

Download as PDF