---
title: "Discussion on \"Rotating a JWT Signing Key Breaks Every Token Signed With the Old One\" | Hashnode"
description: "Discussion on \"Rotating a JWT Signing Key Breaks Every Token Signed With the Old One\". Key rotation sounds like a one-line ops task. Generate a new secret, swap it in, done. I ran the experiment to see what actually breaks, because \"swap it in\" hides a question nobody asks out loud: wha"
url: "https://hashnode.com/posts/rotating-a-jwt-signing-key-breaks-every-token-signed-with-the-old-one/6af40baa82cbd221a078f1eb"
---

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

Discussion

# [Rotating a JWT Signing Key Breaks Every Token Signed With the Old One](https://aheadkit.hashnode.dev/rotating-a-jwt-signing-key-breaks-every-token-signed-with-the-old-one?utm_source=hashnode&utm_medium=feed)

Key rotation sounds like a one-line ops task. Generate a new secret, swap it in, done. I ran the experiment to see what actually breaks, because "swap it in" hides a question nobody asks out loud: wha

7h ago · 5 min read · aheadkit.hashnode.dev  
Read the article

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

## Written by

[Abdus Salam](https://hashnode.com/@aheadkit)

@aheadkit

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
