mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-12-02 01:24:25 +00:00
Bugfix, cppcheck fixes, picojson update
* Updated picojson to current master * Fixed a bug where wrong variable was used * Fixed some style issues detected by cppcheck * Added explicit modifier to jwt::claim. Enable them by defining JWT_CLAIM_EXPLICIT to 1. This is default off for compatibility, but will be default on at a later time.
This commit is contained in:
@@ -248,7 +248,7 @@ TEST(TokenTest, VerifyFail) {
|
||||
auto verify = jwt::verify()
|
||||
.allow_algorithm(jwt::algorithm::none{})
|
||||
.with_issuer("auth0")
|
||||
.with_claim("myclaim", std::string("test"));
|
||||
.with_claim("myclaim", jwt::claim(std::string("test")));
|
||||
ASSERT_THROW(verify.verify(decoded_token), jwt::token_verification_exception);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user