MCPcopy Create free account
hub / github.com/3rdparty/libprocess / JWTError

Class JWTError

include/process/jwt.hpp:32–43  ·  view source on GitHub ↗

Represents the various errors that can be returned when parsing or creating JSON Web Tokens. This can be useful to create proper responses to HTTP requests that included a token.

Source from the content-addressed store, hash-verified

30// creating JSON Web Tokens. This can be useful to create proper
31// responses to HTTP requests that included a token.
32class JWTError : public Error {
33public:
34 enum class Type {
35 INVALID_TOKEN, // Invalid token.
36 UNKNOWN // Internal error/all other errors.
37 };
38
39 JWTError(const std::string& message, Type _type)
40 : Error(message), type(_type) {};
41
42 const Type type;
43};
44
45
46/**

Callers 2

parseMethod · 0.85
createMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected