Skip to main content
The useAuth hook provides authentication state and methods for React components.

Import

Usage

Return Value

Authentication State

User Information

Account Information

Authentication Status

Authentication Methods

Login

Register

Logout

Password Reset

Loading State

Authentication Events

Listen to authentication events:

OAuth Integration

Complete Example

TypeScript

Next Steps