使用Token身份验证的时候出现的问题

能够获取Token值,使用Token身份验证的时候出现:

{
“code”: “jwt_auth_bad_config”,
“message”: “JWT is not configurated properly, please contact the admin”,
“data”: {
“status”: 403
}
}

我的解决方法:

define(‘JWT_AUTH_SECRET_KEY’, ‘JWT is not configurated properly’);
define(‘JWT_AUTH_CORS_ENABLE’, true);

放在

define(‘WP_DEBUG’, true);

参考:https://wordpress.org/support/topic/jwt_auth_bad_config/