How to get data from /wp-json/wp/v2/users/me

Question

i was trying to get the user data with JWT auth in wordpress.

i was send in the postman get request to /wp-json/wp/v2/users/me with the token that i get from /wp-json/jwt-auth/v1/token.

but i get this error:

{
    "code": "rest_not_logged_in",
    "message": "you are not logged in",
    "data": {
        "status": 401
    }
}

can someone help please

0
Gal Abitbul 1 month 0 Answers 3 views 0

Leave an answer