BoolClaim
A claim which represents a bool
struct BoolClaim
If a string is provided, and the string doesn’t represent a bool, then false
will be used.
A claim which represents a bool
struct BoolClaim
If a string is provided, and the string doesn’t represent a bool, then false
will be used.
import JWTKit
🔑 JSON Web Token signing and verification (HMAC, RSA, PSS, ECDSA, EdDSA) using SwiftCrypto.
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
protocol ExpressibleByBooleanLiteral
A type that can be initialized with the Boolean literals true
and false
.
protocol ExpressibleByExtendedGraphemeClusterLiteral : ExpressibleByUnicodeScalarLiteral
A type that can be initialized with a string literal containing a single extended grapheme cluster.
protocol ExpressibleByStringLiteral : ExpressibleByExtendedGraphemeClusterLiteral
A type that can be initialized with a string literal.
protocol ExpressibleByUnicodeScalarLiteral
A type that can be initialized with a string literal containing a single Unicode scalar value.
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 Sendable
init(booleanLiteral value: Bool)
init(from decoder: Decoder) throws
init(stringLiteral value: String)
init(value: Bool)
See JWTClaim
.
var value: Bool
See JWTClaim
.
init(extendedGraphemeClusterLiteral value: Self.StringLiteralType)
init(from decoder: Decoder) throws
See Decodable
.
init(unicodeScalarLiteral value: Self.ExtendedGraphemeClusterLiteralType)
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func encode(to encoder: Encoder) throws
See Encodable
.