Initializer (Default implementation)vapor.jwt-kit 5.1.2JWTKit
init(from:)
See Decodable
.
init(from decoder: Decoder) throws
See Decodable
.
init(from decoder: Decoder) 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 Decoder
A type that can decode values from a native format into in-memory representations.
init(from decoder: any Decoder) throws
Creates a new instance by decoding from the given decoder.
func encode(to encoder: Encoder) throws
See Encodable
.