Most users should not implement signing manually. Use the CLI, TypeScript SDK, Go SDK, or Python SDK — all of them handle JWT signing, key rotation, retries, and the error envelope for you.Read on only if you’re writing a custom client in a language without a Bron SDK, or if you need direct control over the JWT lifecycle.
What is JWT?
What is JWT?
JSON Web Tokens (JWT) is an open standard for securely transmitting information between parties as a JSON object.A JWT consists of three parts separated by dots:
Example of the JWT:
Bron JWT Structure
- Header
- Payload
Step-by-Step Implementation
1
Prepare Your Credentials
- Generate or upload your API Key in the Bron App and obtain your API Key ID
- Save your private key securely
- Use your API Key ID (
kid) in the JWT header.
2
Create the Message String
Concatenate these values separated by newline (Components:
\n) characters:Example:
3
Generate SHA256 Hash
Compute SHA256 over the message string. In Node.js:Store that hex string in the JWT payload under
"message".4
Sign the JWT
Create and sign the JWT using your private key
Examples
- GET
- POST
Request:JWT Header:Signed JWT:Authorization Header:
JWT Payload
