Usage:
Should be included in HTTP Requests in the Authorization header field, or as a query parameter depending on the API documentation for a given endpoint.
Authorization: Bearer <jwt-token>
Required Fields:
Header:
alg(algorithm): Must be string signaling signing algorithm, should beRS256typ(type): Must beJWT
Payload:
iss(issuer): Must be issuer domain such assub.domain.tldkid(key id): Must be unique signing key identifier stringsub(subject): Must be unique user idnbf(not before): Must be Unix timestamp seconds asnumberto indicate time before which token should not be accepted, typically should be set to creation timestamp.exp(expires): Must be Unix timestamp seconds asnumber, to indicate time after which token should not be accepted.
Required Fields Example:
Header:
{
"alg": "RS256",
"typ": "JWT"
}
Payload:
{
"iss":"www.something.tld",
"kid":"8354bb43-e38c-4c0e-9f4a-b0efa32ef360",
"sub": "15e2f938-0a30-45d0-8fa8-7a23357f06e8",
"nbf": 1516239022,
"exp": 1686906796
}