add cast to fix compile

This commit is contained in:
Isaac Connor committed 2021-03-26 17:03:49 -04:00
1 parent 3655b25b7c
commit 1275948744
1 file changed
+2 -1
+2 -1
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");