我正在尝试为WordPress网站构建本机Android应用程序。我正在使用WP REST API v2 (https://wordpress.org/plugins/rest-api/)来获取帖子和其他所需属性。我需要验证用户身份,因此我使用了JWT Authentication for WP REST API (https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/) API来生成和验证令牌,这方面工作良好。但是,当我尝试在标头中传递生成的令牌时,我一直收到以下错误。
{
"code": "jwt_auth_bad_config",
"message": "JWT is not configurated properly, please contact the admin",
"data": {
"status": 403
}
}
有没有任何建议,是什么出了问题?请求帮助让这个东西运行起来。