usefulteam / jwt-auth

WordPress JSON Web Token Authentication
https://wordpress.org/plugins/jwt-auth/
116 stars 49 forks source link

XAMPP localhost jwt_auth_no_auth_header when trying to get token #99

Open davidhealey opened 1 year ago

davidhealey commented 1 year ago

I have setup the htaccess and the secret key etc.

This is the URL I call and I pass my username and password as parameter: http://localhost/wordpress/wp-json/jwt-auth/v1/token

The response I get is:

{
  "success": false,
  "statusCode": 403,
  "code": "jwt_auth_no_auth_header",
  "message": "Authorization header not found.",
  "data": [

  ]
}

Naturally I thought there was something wrong in my config so I tried all manner of fixes. No success.

So I went back to the JWT Auth plugin by Enrique (which I believe is what this project was forked from). I didn't change the configuration and I don't get an error, the token is returned as expected.

So what is the difference between jwt-auth and Enrique's plugin that could trigger this error?