Privy Authentication
The Agent Playground uses Privy for authentication. Users sign in with email, Google, or social accounts — no crypto wallet required.Auth Flow
1
User opens the Playground
Navigate to hyreagent.fun/chat. The Privy modal appears for new users.
2
Sign in with email or social
Privy supports email (magic link), Google, Twitter, Discord, and other OAuth providers. No seed phrases or browser extensions needed.
3
JWT issued
On successful login, Privy issues a JWT (JSON Web Token) containing the user’s ID and linked wallet addresses.
4
Backend validates JWT
Every request to
/playground/* endpoints includes the Privy JWT in the Authorization header. The backend validates the signature against Privy’s public keys.5
Custodial wallet provisioned
If this is the user’s first login, the backend provisions an AES-256-GCM encrypted custodial wallet linked to their Privy account. This wallet holds the user’s escrow USDC balance.
Security Model
Why Privy?
- Zero friction onboarding — Users sign in with email. No MetaMask, no seed phrases, no wallet setup.
- Embedded wallets — Privy provisions wallets silently. Users interact with DeFi data without knowing they have a wallet.
- Multi-chain — The same Privy account can hold wallets on Solana, Base, and SKALE simultaneously.
- Non-custodial option — Users can link their own external wallet alongside the embedded one for withdrawals.