correcting usage of stream operator

This commit is contained in:
Chris Mc
2020-04-15 23:53:26 -04:00
parent 5df90e9c11
commit aa001544e2

View File

@@ -351,7 +351,10 @@ TEST(TokenTest, VerifyFail) {
}
{
jwt::claim object;
std::stringstream{R"({ "test": null })"} >> object;
std::istringstream iss{R"({ "test": null })"};
iss >> object;
ASSERT_EQ(object.get_type() , jwt::claim::type::object);
auto verify = jwt::verify()
.allow_algorithm(jwt::algorithm::none{})
.with_issuer("auth0")