<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>401 UNAUTHORIZED using JWT Token

[ad_1]

Replies: 2

I am using the JWT method to access the REST API of https://askyourpharm.com/wp-json/wp/v2/posts

During the setup of the Token, it passed all the checks using the plugin’s “Check Token” and “Test Configuration” buttons.

Then when I tried to use it on Postman, I only ever get this error

{
“status”: “error”,
“error”: “UNAUTHORIZED”,
“error_description”: “Sorry, you are not allowed to access REST API”
}

I also tried to pass a wrong token just to see if the API would give me a different error, but it still gave me the same error.

Looking at the documentations, I couldn’t find much detail about this error

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer