Skip to content

Commit 9f36be9

Browse files
authored
🔎 Allow to retrieve list of claims (#231)
It is now possible to iterate over the list of claims of a JWK
1 parent 5d25462 commit 9f36be9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/jwt-cpp/jwt.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3502,6 +3502,14 @@ namespace jwt {
35023502
}
35033503

35043504
bool empty() const noexcept { return jwk_claims.empty(); }
3505+
3506+
/**
3507+
* Get all jwk claims
3508+
* \return Map of claims
3509+
*/
3510+
std::unordered_map<typename json_traits::string_type, basic_claim_t> get_claims() const {
3511+
return this->jwk_claims.get_claims();
3512+
}
35053513
};
35063514

35073515
/**

0 commit comments

Comments
 (0)