MCPcopy Create free account
hub / github.com/arun11299/cpp-jwt / DecodeErrc

Enum DecodeErrc

include/jwt/error_codes.hpp:52–73  ·  view source on GitHub ↗

* Decode error conditions */

Source from the content-addressed store, hash-verified

50 * Decode error conditions
51 */
52enum class DecodeErrc
53{
54 // No algorithms provided in decode API
55 EmptyAlgoList = 1,
56 // The JWT signature has incorrect format
57 SignatureFormatError,
58 // The JSON library failed to parse
59 JsonParseError,
60 // Algorithm field in header is missing
61 AlgHeaderMiss,
62 // Type field in header is missing
63 TypHeaderMiss,
64 // Unexpected type field value
65 TypMismatch,
66 // Found duplicate claims
67 DuplClaims,
68 // Key/Secret not passed as decode argument
69 KeyNotPresent,
70 // Key/secret passed as argument for NONE algorithm.
71 // Not a hard error.
72 KeyNotRequiredForNoneAlg,
73};
74
75/**
76 * Errors handled during verification process.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected