JWTPayload
public struct JWTPayload
A helper struct to construct JWT Payload JSON String
-
Method to add registered claims
Declaration
Swift
public mutating func addRegisteredClaim(_ claim: JWTRegisteredClaimsKey, with value: Any) -
Method to add custom claims
Declaration
Swift
public mutating func addClaim(_ claim: String, with value: Any) -
Method to get String representation of the header
Declaration
Swift
public func stringRepresentation() -> String?