dwyl / learn-json-web-tokens

:closed_lock_with_key: Learn how to use JSON Web Token (JWT) to secure your next Web App! (Tutorial/Example with Tests!!)
MIT License
4.18k stars 254 forks source link

How to handle expire token in testing ? #83

Closed nikhiletc closed 3 years ago

nikhiletc commented 5 years ago

I am new in token handling. In my test suite there is hardcode token which is going to be expire soon. How can i handle token? Can i validate it or refresh it?

https://auth0.com/blog/ten-things-you-should-know-about-tokens-and-cookies/ it is possible to validate ,but i have no idea how to do it.