• Resolved Ahmed Hnewa

    (@ahmedriyadh)


    what is the

    1- JWT time to live
    1- Refresh time to live

    if I want to make the token is never be expired
    can?

    I made the
    JWT time to live
    to 1 minute
    but I tested it
    I waited for 2 minutes and it token didn’t expire
    I tried to validate the token
    and after 1 minute
    it still returns a Successful response

    sorry for my bad English and thank you

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

    (@nicu_m)

    Hello @ahmedriyadh,

    1. JWT time to live -> how much time a JWT is valid
    2. Refresh time to live -> after how much time an expired JWT cand not be refreshed.

    The plugin checks the exp property, in order to see if it the JWT is expired or not. If this field is not pressent, than, your JWT will not have an expiration date.

    You can customize the parameters tha you want to have in you JWT paylod, in the Authorization tab:
    https://ps.w.org/simple-jwt-login/assets/screenshot-6.png?rev=2327865

    Just uncheck the “exp”, and generate a new JWT.

    Best regards,
    Nicu.

Viewing 1 replies (of 1 total)

The topic ‘jwt authentication’ is closed to new replies.