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 a631f06 commit 58fe6bcCopy full SHA for 58fe6bc
include/jwt-cpp/jwt.h
@@ -3801,11 +3801,12 @@ namespace jwt {
3801
}
3802
3803
if (!key_found) {
3804
- if (algs.count(algo) == 0) {
+ auto alg = algs.find(algo);
3805
+ if (alg == algs.end()) {
3806
ec = error::token_verification_error::wrong_algorithm;
3807
return;
3808
- algs.at(algo)->verify(data, sig, ec);
3809
+ alg->second->verify(data, sig, ec);
3810
3811
3812
if (ec) return;
0 commit comments