---
title: "Comment by Fawas Kareem on \"Potential Dangers with Using JSON Web Tokens (JWT) For Authorization\" | Hashnode"
description: "This is really a nice article🫡. I was hoping to see refresh token as one of the countermeasures. The use of refresh token This way you give the access token a"
url: "https://hashnode.com/posts/potential-dangers-with-using-json-web-tokens-jwt-for-authorization/652a3348c6b744e11805eb79/comment/652a44f4069d0e037f9a871f"
---

[Discussion](https://hashnode.com/posts/potential-dangers-with-using-json-web-tokens-jwt-for-authorization/652a3348c6b744e11805eb79)

Comment [Potential Dangers with Using JSON Web Tokens (JWT) For Authorization](https://hashnode.com/posts/potential-dangers-with-using-json-web-tokens-jwt-for-authorization/652a3348c6b744e11805eb79)

[Fawas Kareem](https://hashnode.com/@Phawazzzy)

[Oct 14, 2023](https://hashnode.com/posts/potential-dangers-with-using-json-web-tokens-jwt-for-authorization/652a3348c6b744e11805eb79/comment/652a44f4069d0e037f9a871f)

This is really a nice article🫡. I was hoping to see refresh token as one of the countermeasures. The use of refresh token This way you give the access token a short lifespan and give the refresh token a longer expiry time and maybe when the access token needs to be refreshed you also update the refresh token.

The refresh token can be encrypted as you stated in the article.

I love the relatable analogies you used.

[Akinola Raphael](https://hashnode.com/@EthicalRalph)

[Oct 14, 2023](https://hashnode.com/posts/potential-dangers-with-using-json-web-tokens-jwt-for-authorization/652a3348c6b744e11805eb79/comment/652a44f4069d0e037f9a871f#reply-652a4d06069d0e037f9a884b)

Thanks for this amazing piece [Fawas Kareem](https://hashnode.com/@Phawazzzy), indeed with refresh tokens, access tokens can have shorter lifespans, reducing the window for malicious activity.
