---
title: "Discussion on \"JWT Authentication: I Locked Myself Out of My Own API and Learned How Tokens Work\" | Hashnode"
description: "Discussion on \"JWT Authentication: I Locked Myself Out of My Own API and Learned How Tokens Work\". top leaving your Express APIs wide open. Learn how JSON Web Tokens work, from stateless authentication to building secure middleware from scratch."
url: "https://hashnode.com/posts/jwt-authentication-i-locked-myself-out-of-my-own-api-and-learned-how-tokens-work/69fb64ff50ecad453347f415"
---

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

Discussion

# [JWT Authentication: I Locked Myself Out of My Own API and Learned How Tokens Work](https://blog.saumyagrawal.in/jwt-authentication-i-locked-myself-out-of-my-own-api-and-learned-how-tokens-work?utm_source=hashnode&utm_medium=feed)

top leaving your Express APIs wide open. Learn how JSON Web Tokens work, from stateless authentication to building secure middleware from scratch.

May 6 · 20 min read · blog.saumyagrawal.in  
Read the article

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

## Written by

[Saumya](https://hashnode.com/@saumyaetc)

@saumyaetc · Lucknow

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

Refactoring to Software Development

Trying to transition my career to explore new things, new tech

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
