Compact JWT construction
The protected header identifies the selected HMAC algorithm, while the payload editor supplies the JWT claims object. The complete protected-header JSON object and complete payload JSON object are each serialized and encoded as one unpadded base64url segment. A period separates the encoded header from the encoded payload, producing the signing input used for the final segment.