Authentication Overview
Openfort React supports a variety of authentication flows to onboard users securely.
- Email/password login
- Social (OAuth) login
- Guest (anonymous) login
- External wallet (MetaMask, WalletConnect, etc.)
Each method is built for seamless integration with your app, letting you manage user sessions, recovery, and wallet linking with minimal code.
How to authenticate your users
There are two ways of authenticating your users: With openfort UI or with openfort hooks.
Using Openfort UI
If you are using openfort UI, set up the providers in the UI here
Using Openfort hooks
To authenticate your users manually there are this hooks to authenticate your users:
Hook Name | Purpose & Usage |
---|---|
useEmailAuth | Email/password authentication flows (sign up, login, reset, link) |
useOAuth | OAuth authentication and linking (Google, Facebook, Twitter, etc) |
useGuestAuth | Guest user authentication for instant onboarding |
useEmailAuth | Wallet connection and SIWE authentication flows |
useAuthCallback | Handles callback logic automatically after OAuth or email verification flows |