use strtoul for conversion

This commit is contained in:
Pliable Pixels 2019-05-11 16:01:05 -04:00
parent 96fa6149a8
commit 053e57af62
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ std::pair <std::string, unsigned int> verifyToken(std::string jwt_token_str, std
std::string iat_str = decoded.get_payload_claim("iat").as_string();
Info ("Got IAT token=%s", iat_str);
token_issued_at = strtoul(iat_str, NULL,0 );
token_issued_at = strtoul(iat_str.c_str(), NULL,0 );
}
else {
Error ("IAT not found in claim. This should not happen");