jonathan-dejong / simple-jwt-authentication

Extends the WP REST API using JSON Web Tokens Authentication as an authentication method.
GNU General Public License v3.0
87 stars 25 forks source link

rest_cannot_create 401 #33

Closed jeanrinvil closed 5 years ago

jeanrinvil commented 6 years ago

Hi,

I'm triying to use your plugin to auth with wp rest api, but when I hit /wp/v2/posts for example with the token in bearer auth via postman, I always have 401 error rest_cannot_create

What I do wrong ?

Thanks

isuke01 commented 6 years ago

Check your .htaccess if it is correctly set, or other plugin issue, also wp-config consts SIMPLE_JWT_AUTHENTICATION_SECRET_KEY I had same issue, WP replace my .htaccess edits, just dont put it inside # BEGIN WordPress # END WordPress