Login
Pangea ID allows users to log in securely without passwords, eliminating credential phishing risks and reducing login friction. This is ideal for Web2 apps needing high-security authentication or privacy by default and Web3 apps requiring private key-based transaction authorization.
Before You Start
Ensure your app is registered with the Pangea network (See Register Your Web4 App)
For local testing, run your app on http://localhost:3000 and connect to the testnet
1. Configure network
Set your network at the start of your app (e.g., in App.tsx
for React):
2. Open Login Flow
This will open the Pangea ID app (via QR or deep link)
/login
Request data sharing
Request user information by adding a dataRequest
object.
/login
3. Callback page
On your /callback
page:
/callback
4. Persist User Session
Check user status when your app starts (e.g., in App.tsx
):
Last updated