---
title: "Comment by Shaihu Abdul Kadhir M on \"JWT Authentication  in NodeJS\" | Hashnode"
description: "Due to setting of \"req.user = data\" can be exploited and gain access of another user when we use that persons's JWT token"
url: "https://hashnode.com/posts/jwt-authentication-in-nodejs/65df27506de3f9c4e17626d2/comment/6671b4e7d9b0f8104b74ab62"
---

[Discussion](https://hashnode.com/posts/jwt-authentication-in-nodejs/65df27506de3f9c4e17626d2)

Comment [JWT Authentication in NodeJS](https://hashnode.com/posts/jwt-authentication-in-nodejs/65df27506de3f9c4e17626d2)

[Shaihu Abdul Kadhir M](https://hashnode.com/@abdulms)

[Jun 18, 2024](https://hashnode.com/posts/jwt-authentication-in-nodejs/65df27506de3f9c4e17626d2/comment/6671b4e7d9b0f8104b74ab62)

Due to setting of "req.user = data" can be exploited and gain access of another user when we use that persons's JWT token

![Screenshot 2024-06-18 at 9.53.09 PM.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1718727819896/e7570c63-3237-4553-adb5-f0631ecaf344.png)
