---
title: "Discussion on \"How to Invalidate a JWT in Node.js Using Redis Cache\" | Hashnode"
description: "Discussion on \"How to Invalidate a JWT in Node.js Using Redis Cache\". This post discusses the vulnerability of the inability to invalidate JSON Web Tokens or JWT and implements a method to fix it."
url: "https://hashnode.com/posts/how-to-invalidate-a-jwt-in-nodejs-using-redis-cache/61d08f717cb96c3f9226167d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Invalidate a JWT in Node.js Using Redis Cache](https://helewud.com/how-to-invalidate-a-jwt-in-nodejs-using-redis-cache?utm_source=hashnode&utm_medium=feed)

This post discusses the vulnerability of the inability to invalidate JSON Web Tokens or JWT and implements a method to fix it.

Jan 1, 2022 · 8 min read · helewud.com  
Updated Jan 4, 2022  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#jwt](https://hashnode.com/tag/jwt)
-   [#redis](https://hashnode.com/tag/redis)
-   [#backend](https://hashnode.com/tag/backend)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Okikijesu Elewude](https://hashnode.com/@helewud)

@helewud · Lokoja, Nigeria

  
[View profile](https://hashnode.com/@helewud)

Software Engineer

I'm a Software Engineer and Graphic Designer focused on developing backend systems for web applications. I'm an enthusiast for technolgy, gadgets, world histories and sharing technical knowledge from my personal learning path. Also I like talking about the Gospel of Christ.

## Responses 4

Markdown supported · ⌘↵ to post

[José Pablo Ramírez Vargas](https://hashnode.com/@webJose)

[Dec 11, 2022](https://hashnode.com/posts/how-to-invalidate-a-jwt-in-nodejs-using-redis-cache/61d08f717cb96c3f9226167d/comment/6395755d9fa713176ab9da34)

I have what I consider a much better approach. Follow the [link](https://webjose.hashnode.dev/invalidating-json-web-tokens-jwt-the-right-way) .

[Hakeem Aro](https://hashnode.com/@Hakeemaro)

[Jan 2, 2022](https://hashnode.com/posts/how-to-invalidate-a-jwt-in-nodejs-using-redis-cache/61d08f717cb96c3f9226167d/comment/61d0eb057cb96c3f92261c31)

Nice work.

[Nelson Michael](https://hashnode.com/@nmNelson)

[Jan 1, 2022](https://hashnode.com/posts/how-to-invalidate-a-jwt-in-nodejs-using-redis-cache/61d08f717cb96c3f9226167d/comment/61d08ffc7cb96c3f922616a8)

Thank you for writing this chief.

[Yusuf Ahmed Tijani](https://hashnode.com/@tayy)

[Jan 1, 2022](https://hashnode.com/posts/how-to-invalidate-a-jwt-in-nodejs-using-redis-cache/61d08f717cb96c3f9226167d/comment/61d08fcb7cb96c3f92261693)

Good read.
