Authentication
Overview
How It Works
Basic Authentication Flow
User clicks "Connect Wallet"
→ MetaMask (or other wallet) prompts for connection
→ User approves wallet connection
→ App receives wallet addressAuthentication Methods
Direct Wallet Authentication
Agent Wallet Authentication
Session Management
Browser Sessions (Session Wallets)
Persistent Sessions (API Wallets)
Wallet Connection
MetaMask
WalletConnect
Hardware Wallets (Ledger/Trezor)
Security Considerations
Main Wallet Security
Agent Wallet Security
Authentication vs Authorization
Authentication
Authorization
Multi-Wallet Management
Multiple Accounts
Subaccounts
Common Workflows
First-Time User
Daily Trader (Session Wallet)
Bot Trader (API Wallet)
Troubleshooting
"Connection Failed"
"Signature Rejected"
"Invalid Session"
"Wrong Network"
Best Practices
For Security
For Convenience
Technical Details
Signature Challenge
Session Tokens
Conclusion
Last updated