• Resolved lion1991

    (@lion1991)


    Hello.

    I have already a jwt token from simple-jwt-login/v1/auth endpoint.

    However, when I sent the post request via simple-jwt-login/v1/auth/validate endpoint from postman, I get:

    “success”: false,

        “data”: {

            “message”: “Unable to find user  property in JWT.”,

            “errorCode”: 30

        }

    I have tried Bearer token and JWT Bearer. In the case about JWT Bearer, Ι write the secret key and the payload. I verifyed the token into https://jwt.io/ and everything is ok.

    How to use this token on postman?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nicu Micle

    (@nicu_m)

    hi @lion1991,

    I believe the issue is due to the fact that you have not selected the payload key in plugin setting-> autologin (JWT parameter key). https://simplejwtlogin.com/docs/autologin/#screenshot

    If you want to use the email from the payload, you need to write “email” or in case you want to authenticate by id, set “id” in this input.(without the double quotes)

    Please let me know if this works for you.

    Best regards,

    Nicu

    Thread Starter lion1991

    (@lion1991)

    Hola @nicu_m

    I followed your instructions and now the wp/v2/users/ endpoint returns the data.

    Thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unable to find user property in JWT’ is closed to new replies.