Closed Derrity closed 1 year ago
const bool verify(const decoded_jwt<json_traits>& jwt) const {
try {
std::error_code ec;
verify(jwt, ec);
error::throw_if_error(ec);
return true;
}catch(const std::exception&){
return false;
}
}
A bool is not capable of transmitting all the various error states.
This would be a welcomed addition if you followed the existing std::error_code
mechanism the library implemented
then we can use
and