---
title: "Discussion on \"Implementing JWT Auth with NodeJS\" | Hashnode"
description: "Discussion on \"Implementing JWT Auth with NodeJS\". JWT is a particularly useful technology for API authentication and server-to-server authorization.\nJWT (JSON Web tokens) is a great way to implement authentication in your applications, often it is being treated as a silver bullet for almost every ba..."
url: "https://hashnode.com/posts/implementing-jwt-auth-with-nodejs/63a4299d3396f094342b4b46"
---

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

Discussion

# [Implementing JWT Auth with NodeJS](https://nisabmohd.hashnode.dev/implementing-jwt-auth-with-nodejs?utm_source=hashnode&utm_medium=feed)

JWT is a particularly useful technology for API authentication and server-to-server authorization. JWT (JSON Web tokens) is a great way to implement authentication in your applications, often it is being treated as a silver bullet for almost every ba...

Dec 22, 2022 · 4 min read · nisabmohd.hashnode.dev  
Read the article

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

## Written by

[Mohd Nisab Alam](https://hashnode.com/@nisabmohd)

@nisabmohd · India

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

Software Engineer

Hello, fellow &lt;𝙙𝙚𝙫𝙚𝙡𝙤𝙥𝙚𝙧𝙨/&gt;! Hi, I'm Nisab, A Full-Stack Web Developer, a begginer Android developer and a Competitive Programming Enthusiast , who is obsessed with the idea of improving himself and wants a platform to grow and excel .

## Responses 1

Markdown supported · ⌘↵ to post

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

[Dec 25, 2022](https://hashnode.com/posts/implementing-jwt-auth-with-nodejs/63a4299d3396f094342b4b46/comment/63a7fe778de4e0eeae64c9c1)

Tokens should never be stored anywhere. If your db is hacked, you are giving away all those accesses. A refresh token should also have an expiration time, only far longer than an access token.
