• Resolved jonofat

    (@jonofat)


    If I for example want to get users from the WordPress rest API I can go to:

    http://example.com/wp-json/wp/v2/users/

    But this route is protected and requires the user to be logged in. Tried to hit that enpoint sending the JWT token in the header ie: Authorization Bearer but it still denies me access?

Viewing 2 replies - 1 through 2 (of 2 total)
  • did you tried send jwt in parameter (query) ??
    it work with me

    • This reply was modified 5 years, 3 months ago by Ahmed Hnewa.
    Plugin Author Nicu Micle

    (@nicu_m)

    Hello @jonofat,

    As @ahmedriyadh said, it should work if you send the JWT in the query.

    Also, if you update the plugin to the latest version, you will get an improved version of parsing and getting data from requests.

    I’ve tried on my end, and everything looks ok.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Access other routes that require authentication’ is closed to new replies.