I would like to use WP REST auth API with this plugin: https://github.com/Tmeister/wp-api-jwt-auth
I get a token with this req in POST: http: // localhost / wp_rest / wp-json / jwt-auth / v1 / token
But I can’t make a request for the mehod post: local / wp_rest / sor-json / cp / v2 / messages
I get 403 error message:
{ "code": "rest_forbidden" "message": "You don't have permission to do this." "data": { "status": 403 } }
In my header, I have the following:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9sb2NhbGhvc3RcL3dwX3Jlc3QiLCJpYXQiOjE0NTAzNDEwMTgsIm5iZiI6MTQ1MDM0MTAxOCwiZXhwIjoxNDUwOTQ1ODE4LCJkYXRhIjp7InVzZXIiOnsiaWQiOiIxIn19fQ.rGNPsU4EocClWLYWaSDs1hDJMODszg-eKfqnKSEsiw0
I try with localhost / wp_rest / wp-json / jwt-auth / v1 / token / validate but I get this error:
{ "code": "jwt_auth_no_auth_header", "message": "Authorization header not found.", "data": { "status": 403 } }
Any idea?
source share