Enable JSON Web Token authentication for the WordPress REST API.
GNU General Public License v2.0
106
stars
25
forks
source link
wp-json/wp/v2/token/validate return "Invalid bearer token." after token sucessfully generated #37
Open
pestevao opened 4 years ago
After sucessfully generate the token I'm able to make some REST api requests but if I request:
curl -X GET https://my-domain.com/wp-json/wp/v2/token/validate \ -H 'Authorization: Bearer ACCESS_TOKEN'
It shows:
{"code":"rest_authentication_invalid_bearer_token","message":"Invalid bearer token.","data":{"status":403}}