JWT is not configured properly
-
Hi I would like to secure the custom endpoints of my API interface and use this plugin because it offers the optimal functionality for my needs.
The installation and configuration went smoothly, after depositing the private key I could request a token via the token route, this also ran smoothly as described in the documentation.The used route to request the token
/wp-json/jwt-auth/v1/token
Afterwards I wanted to use this token to access my custom route. But at this point i get the message:
jwt_auth_bad_config
JWT is not configured properly.I use Postman to test the API and have stored the requested token under Authorzation Type Bearer Token.
According to the documentation this error message occurs if the private key is not set, so I removed it again from the wp-config.php and tested if I can then request a token, unsurprisingly this was no longer possible.
Did I make another configuration error or why can I request a token but not apply it without getting the misconfiguration error message?
- The topic ‘JWT is not configured properly’ is closed to new replies.