Authentication
Multiple auth methods supported. Choose what works for your users.
📧
Email Magic Link
Password-free email login
🔵
Google OAuth
One-click Google sign-in
👛
Wallet (SIWS)
Sign-In with Solana
Email Magic Link
1
Send Magic Link
POST /api/v1/auth/email { email: "..." }2
User clicks link in email
Redirects to /auth/verify?token=...3
Verify & Get Session
GET /api/v1/auth/verify?token=...Google OAuth
1
Get OAuth URL
GET /api/v1/auth/google → { url }2
Redirect to Google
User authorizes on Google3
Handle Callback
POST /api/v1/auth/google/callback { code }Wallet (Sign-In with Solana)
1
Request Nonce
GET /api/v1/auth/nonce?wallet=...2
Sign Message
User signs the nonce with their wallet3
Verify & Get Session
POST /api/v1/auth/wallet_siws { wallet, message, signature, nonce }Link Wallet to Existing Account
Users who signed up with email/Google can link a wallet later for trading:
POST /api/v1/auth/link-wallet { wallet, message, signature, nonce }