mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-11-30 10:18:40 +00:00
Initial support for std::error_code (#86)
* Add error_code support to algorithm::verify * Add error_code support for signing * Add error_code overloads to verifying * Fix missing throw * Improvements * Remove unused throwing overloads * Fix test on older gtest * Found bug and added more testing * Move exceptions into error namespace
This commit is contained in:
committed by
GitHub
parent
dde742cca3
commit
ab37be7df4
@@ -4,6 +4,7 @@
|
||||
TEST(TokenFormatTest, MissingDot) {
|
||||
ASSERT_THROW(jwt::decode("eyJhbGciOiJub25lIiwidHlwIjoiSldTIn0.eyJpc3MiOiJhdXRoMCJ9"), std::invalid_argument);
|
||||
ASSERT_THROW(jwt::decode("eyJhbGciOiJub25lIiwidHlwIjoiSldTIn0eyJpc3MiOiJhdXRoMCJ9."), std::invalid_argument);
|
||||
ASSERT_THROW(jwt::decode("eyJhbGciOiJub25lIiwidHlwIjoiSldTIn0eyJpc3MiOiJhdXRoMCJ9"), std::invalid_argument);
|
||||
}
|
||||
|
||||
TEST(TokenFormatTest, InvalidChar) {
|
||||
|
||||
Reference in New Issue
Block a user