• Resolved amrgharieb

    (@amrgharieb)


    Hi team
    good day
    i face an issue because I try to reset the password via put and JWT method but it reply
    status code 400
    message : This JWT can not change your password.

    i use the jwt that returned from this end point

    let endpoint: string =
    environment.WPAPI +
    ?rest_route=/simple-jwt-login/v1/auth&email=${email}&password=${password};

    could you give me a hand

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

    (@nicu_m)

    Hello @amrgharieb,

    You get this error because your JWT belongs to a different user.

    We do a check in the background, to make sure the user found in the JWT is the same as the email that is provided in the reset password endpoint.

    You can use the /auth/validate endpoint in order to make sure that the email from your JWT payload: https://simplejwtlogin.com/docs/validate-token

    Best regards,
    Nicu.

Viewing 1 replies (of 1 total)

The topic ‘reset password via JWT’ is closed to new replies.