Prerequisites
Before implementing authentication, ensure you have:- App Registration: Your app must be registered with Dialect (registration guide)
- Client Key: Your Dialect client key (format:
dk_...
)
Authentication Overview
Dialect uses a two-part authentication system for inbox integration:- Client Key (
X-Dialect-Client-Key
): Identifies your application - JWT Token (
Authorization: Bearer
): Authenticates the user via wallet signature
- Prepare: Generate a message/transaction for the user to sign
- Sign: User signs with their wallet
- Verify: Exchange the signature for a JWT token
- Use: Include the JWT token in subsequent API calls