useCrefy Hook
TheuseCrefy hook allows you to access authentication state, user details, wallet info, and methods to log in or out directly from your components.
Usage
Available Exports
Type Definitions
CrefyUser
WalletInfo
Examples
Basic Authentication Check
Display User Information
Logout Functionality
Using Token for API Calls
Important Notes
Reactive Updates: The hook automatically updates when authentication state changes, so your components will re-render when users log in or out.
