Closed DudeThatsErin closed 6 months ago
Hi @DudeThatsErin ,
The issue here is that you have set the wrong payload key for the JWT.
Please go to Simple JWT Plugin settings -> Login -> JWT parameter key and set it to "id" or "email" ( without the double quotes).
As I see in the error message, currently you set "user.id", but if you generate the JWT in the "/simple-jwt-login/v1/auth" endpoint, the payload will contain the following keys: id, email, username, site...
You can check your JWT payload on https://jwt.io/.
Then why use user.id
as an example if user.id
doesn't work?
Now that you mentioned, i also see it very confusing. Most of the people generate JWT in the /auth endpoint. So definitely should be 'id' or 'email' .
I will close this issue.
The UI has been improved.
Bug Report
Plugin Version
3.53.3
PHP Version
8.1.27
WordPress Version
6.5.2
Bug description
I am trying to retrieve information from the wordpress database using the plugin like the user's name (first and last) and email to store in my secure storage for my app.
When I attempt to use the
validate JWT URL
address I get this error:Because the data that is retrieved is this:
I have the payload set up for everything correctly as far as I'm aware.
Other installed plugins (optional)
This is our development site and we make heavy use of plugins so we have a lot: