Code
@objc(MoEngageJwtAuthenticationErrorDetailsCode)
public enum Code : Int, RawRepresentable, CustomStringConvertible, Sendable
JWT Authentication Error Codes.
This enum defines all possible JWT authentication error codes that can occur during token processing and validation. Each code represents a specific failure scenario with a unique integer value for easy identification.
-
Token has expired or time constraints failed (Error Code: 4010).
Declaration
Swift
case timeConstraintFailure = 4010 -
Token decryption failed (Error Code: 4000).
Declaration
Swift
case decryptionFailed = 4000 -
JWT header type is incompatible (Error Code: 4001).
Declaration
Swift
case headerTypeIncompatible = 4001 -
Token payload content is missing or invalid (Error Code: 4002).
Declaration
Swift
case tokenPayloadContentMissing = 4002 -
Token signature validation failed (Error Code: 4030).
Declaration
Swift
case invalidSignature = 4030 -
User identifier mismatch (Error Code: 4031).
Declaration
Swift
case identifierMismatch = 4031 -
Unknown or unspecified authentication error (Error Code: 4050).
Declaration
Swift
case unknown = 4050 -
JWT token is not available when required (Error Code: 1001).
Declaration
Swift
case tokenNotAvailable = 1001 -
Human-readable description of the error code.
Declaration
Swift
public var description: String { get }