• Resolved charlesbinder

    (@charlesbinder)


    Every other JWT plugin token works for creating posts, but your token gives 401 error,
    BUT only your plugin has renew and expire token.
    Could you please let me know how to fix the creating post part? your jwt doesn’t work.

    
    {
      "code": "rest_cannot_create",
      "message": "Sorry, you are not allowed to create posts as this user.",
      "data": {
        "status": 401
      }
    }
    • This topic was modified 4 years, 6 months ago by charlesbinder.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter charlesbinder

    (@charlesbinder)

    When I set to “code”

    I get the same error

    {
      "code": "rest_cannot_create",
      "message": "Sorry, you are not allowed to create posts as this user.",
      "data": {
        "status": 401
      }
    }
    Thread Starter charlesbinder

    (@charlesbinder)

    HELP dude

    Plugin Author Nicu Micle

    (@nicu_m)

    Hello @charlesbinder,

    Please go to Plugin Settings -> General and make sure that the beta feature All WordPress endpoints checks for JWT authentication is checked.

    After this feature is checked, just send the JWT to the request, and you should be able to make calls as an authenticated user.

    Best regards,
    Nicu.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unauthorized access for creating posts’ is closed to new replies.