---
title: "Discussion on \"How to invalidate a JWT using a blacklist\" | Hashnode"
description: "Discussion on \"How to invalidate a JWT using a blacklist\". This article is going to show you how to invalidate JWTs using the token blacklist method."
url: "https://hashnode.com/posts/how-to-invalidate-a-jwt-using-a-blacklist/604603fc8458d42fc821d0cd"
---

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

Discussion

# [How to invalidate a JWT using a blacklist](https://dev-insights.hashnode.dev/how-to-invalidate-a-jwt-using-a-blacklist?utm_source=hashnode&utm_medium=feed)

This article is going to show you how to invalidate JWTs using the token blacklist method.

Mar 8, 2021 · 9 min read · dev-insights.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#jwt](https://hashnode.com/tag/jwt)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#authentication](https://hashnode.com/tag/authentication)

## Written by

[Tosin Moronfolu](https://hashnode.com/@chukwutosin)

@chukwutosin · Lagos, Nigeria

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

Making things work on the Web!

## Responses 1

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-using-a-blacklist/604603fc8458d42fc821d0cd/comment/6395781a9fa713176ab9dac3)

Saving JWT's in any medium is a security risk. The blacklist method needs to be stopped.

The most straightforward example one can give:

1.  Hacker gains access to your database.
2.  Hacker reads all invalidated tokens in the blacklist.
3.  Hacker clears the blacklist. Now all blacklisted tokens are back to Active and Good state.
4.  Hacker does bad things with the stolen, previously-blacklisted-but-not-anymore, list of tokens.
