JWT
public enum JWT
Type that provides APIs to generate JWS
-
API to generate JWS
Declaration
Swift
public static func jws(header: Encodable, payload: Encodable, algorithm: JWTAlgorithm) throws -> String?Parameters
headerThe header of the JWT. This could be a plain JSON String or Struct Encodable type.
payloadThe payload or claim of the JWT. This could be a plain JSON String or Struct Encodable type.
algorithmThe algorithm used to sign the JWT.