Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XAMPP localhost jwt_auth_no_auth_header when trying to get token #99

Open
davidhealey opened this issue Apr 14, 2023 · 0 comments
Open

Comments

@davidhealey
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant