JWT

public struct JWT<Payload> where Payload : JWTPayload

A JSON Web Token with a generic, codable payload.

let jwt = JWT(payload: ...)
let data = try jwt.sign(using: ...)

Learn more at https://jwt.io. Read specification (RFC 7519) https://tools.ietf.org/html/rfc7519.