We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please answer the following questions for yourself before submitting an issue.
I ran through all the setups procedures. I can see wp-json/jwt-auth/v1/ being added and can see them through GET.
However when I try to POST to wp-json/jwt-auth/v1/token, with username and password being in form data it results in 401 Authorization Required.
Any ideas how to debug this/what caused this?
The text was updated successfully, but these errors were encountered:
@Kuro091 use JSON body:
{ "username": "your_username", "password": "your_password" }
curl --request POST \ --url http://example.com/wp-json/jwt-auth/v1/token \ --header 'Content-Type: application/json' \ --data '{"username": "your_username", "password": "your_password"}'
Sorry, something went wrong.
@Kuro091 I've just tried in my local project with postman and from comand line (exported from postman) it worked in both.
curl --location 'http://local.example.com/wp-json/jwt-auth/v1/token' \ --header 'Content-Type: application/json' \ --data '{ "username":"Sebastian", "password":"password" }'
{"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWwucGFzc3RoZWtleXMuY29tIiwiaWF0IjoxNzMwODIwNjY0LCJuYmYiOjE3MzA4MjA2NjQsImV4cCI6MTczMTQyNTQ2NCwiZGF0YSI6eyJ1c2VyIjp7ImlkIjoiNTcifX19.hYKmQrJXm0jB8cmgQbHZEfuGfOo5JtShdyrUwtPQhZk","user_email":"[email protected]","user_nicename":"sebastian","user_display_name":"Sebastian"}
No branches or pull requests
Issue Name
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Context
I ran through all the setups procedures. I can see wp-json/jwt-auth/v1/ being added and can see them through GET.
However when I try to POST to wp-json/jwt-auth/v1/token, with username and password being in form data it results in 401 Authorization Required.
Any ideas how to debug this/what caused this?
The text was updated successfully, but these errors were encountered: