JWT.cc
/**
 * Decode payload
 * 
 * @param string payload Encoded token string
 * @return auto
 */
Decode payload

@param string payload Encoded token string
@return auto
Decode payload @param string payload Encoded token string @return auto
jwt::jwt_object JWTimpl::decode(std::string token)
{
    using namespace jwt::params;
    std::string passcode = this->passcode; 
    jwt::jwt_object dec_obj = jwt::decode(
        token, 
        algorithms({"HS256"}), 
        secret(passcode)
    );
    return dec_obj;
}
jwt :: jwt_object JWTimpl :: decode ( std :: string token ) { using namespace jwt :: params ; std :: string passcode = this -> passcode ; jwt :: jwt_object dec_obj = jwt :: decode ( token , algorithms ( { " " } ) , secret ( passcode ) ) ; return dec_obj ; }
Decode payload
Decode payload
// Secret to use for the algorithm