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 dc5c066 commit 913f95cCopy full SHA for 913f95c
include/jwt-cpp/jwt.h
@@ -3835,11 +3835,12 @@ namespace jwt {
3835
}
3836
3837
if (!key_found) {
3838
- if (algs.count(algo) == 0) {
+ auto alg = algs.find(algo);
3839
+ if (alg == algs.end()) {
3840
ec = error::token_verification_error::wrong_algorithm;
3841
return;
3842
- algs.at(algo)->verify(data, sig, ec);
3843
+ alg->second->verify(data, sig, ec);
3844
3845
3846
if (ec) return;
0 commit comments