Instance Method (Default implementation)vapor.jwt-kit 5.1.2JWTKit
encode(to:)
See Encodable
.
func encode(to encoder: Encoder) throws
See Encodable
.
func encode(to encoder: Encoder) throws
import JWTKit
🔑 JSON Web Token signing and verification (HMAC, RSA, PSS, ECDSA, EdDSA) using SwiftCrypto.
protocol JWTClaim : Decodable, Encodable, Sendable
A claim is a codable, top-level property of a JWT payload. Multiple claims form a payload. Some claims, such as expiration claims, are inherently verifiable. Each claim able to verify itself provides an appropriate method for doing so, depending on the specific claim.
protocol Encoder
A type that can encode values into a native format for external representation.
func encode(to encoder: any Encoder) throws
Encodes this value into the given encoder.
init(from decoder: Decoder) throws
See Decodable
.