We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e516be9 commit 0eb1f6aCopy full SHA for 0eb1f6a
include/jwt-cpp/jwt.h
@@ -3723,11 +3723,12 @@ namespace jwt {
3723
}
3724
3725
if (!key_found) {
3726
- if (algs.count(algo) == 0) {
+ auto alg = algs.find(algo);
3727
+ if (alg == algs.end()) {
3728
ec = error::token_verification_error::wrong_algorithm;
3729
return;
3730
- algs.at(algo)->verify(data, sig, ec);
3731
+ alg->second->verify(data, sig, ec);
3732
3733
3734
if (ec) return;
0 commit comments