Dynamic Integration
Dynamic provides wallet connection, embedded wallets, and multi-chain auth for web3 apps. You can use Dynamic as your auth provider for Privacy Boost, letting users log in through Dynamic’s UI while using Privacy Boost for private transactions.How It Works
Dynamic authenticates your users and issues JWTs. Your backend forwards the Privacy Boost login payload with the Dynamic JWT attached. Privacy Boost validates the token against Dynamic’s JWKS endpoint using thecustom_jwt auth method.
Server-Side Setup
Your app must be configured with thecustom_jwt auth method. Contact the Privacy Boost team with:
- JWKS URL — Dynamic’s JWKS endpoint for your environment:
https://app.dynamic.xyz/api/v0/sdk/<YOUR_ENVIRONMENT_ID>/.well-known/jwks - Issuer (optional) —
https://app.dynamic.xyz/<YOUR_ENVIRONMENT_ID> - Audience (optional) — Your Dynamic environment ID
Find your Environment ID in the Dynamic Dashboard under Developer > SDK & API Keys.
Client-Side Integration
1. Set Up Dynamic
Follow Dynamic’s React quickstart to set upDynamicContextProvider:
2. Create a Token Provider
The token provider gets the Dynamic auth token and forwards it with the Privacy Boost login payload:3. Authenticate with Privacy Boost
4. Implement the Backend Endpoint
Your backend receives the SDK’s login payload, and forwards to Privacy Boost with the Dynamic JWT:Using Dynamic’s Wallet Connector
If your users connect wallets through Dynamic, you can use the connected wallet’s provider with the Privacy Boost SDK:Next Steps
Continue with setup:- Key Management — Configure key persistence for returning users
- Error Handling — Handle auth and operation errors
- Custom JWT — For Auth0, Firebase, Supabase, Clerk, or OIDC providers
- Privy — For Privy social login and embedded wallets