Authentication
There are two distinct authentication concerns:- Gx402 Server ↔ x402 provider (machine-to-machine)
- Client (player wallet) ↔ Middleware (signature-based proof of ownership)
Server ↔ x402 provider
- Use the API key or OAuth scheme the x402 provider gives you.
- Store provider credentials in environment variables or a secret manager (DO NOT commit them).
- Protect server endpoints that call x402 with your own authorization (API tokens, JWTs, or internal network rules).
