add cast to fix compile

This commit is contained in:
Isaac Connor 2021-03-26 17:03:49 -04:00
parent 3655b25b7c
commit 1275948744
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ std::pair <std::string, unsigned int> verifyToken(std::string jwt_token_str, std
return std::make_pair("", 0);
}
err = jwt_decode(&jwt, jwt_token_str.c_str(), key.c_str(), key.length());
err = jwt_decode(&jwt, jwt_token_str.c_str(),
reinterpret_cast<const unsigned char *>(key.c_str()), key.length());
if (err) {
jwt_free(jwt);
Error("Could not decode JWT");