# JWT - 401 Unauthorized error when sending request

**URL:** <https://community.postman.com/t/jwt-401-unauthorized-error-when-sending-request/51728>\
**Category:** Help Hub\
**Tags:** authorization, jwt\
**Created:** [September 13, 2023, 3:25pm UTC](https://community.postman.com/t/jwt-401-unauthorized-error-when-sending-request/51728 "2023-09-13T15:25:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![maboudi](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@maboudi](https://community.postman.com/u/maboudi)\
**Post date:** [September 13, 2023, 3:25pm UTC](https://community.postman.com/t/jwt-401-unauthorized-error-when-sending-request/51728/1 "2023-09-13T15:25:57Z")

</div>

Hi team, could someone give me a hand 🖐 I tried several solutions but always not working , I am newly using Postman ,

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/6/8/684680601b76484955a19d8d77705d7690bfa18c.png)

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [September 13, 2023, 3:44pm UTC](https://community.postman.com/t/jwt-401-unauthorized-error-when-sending-request/51728/2 "2023-09-13T15:44:25Z")

</div>

Hey @maboudi 👋

Welcome to the Postman Community! :postman:

It’s difficult to help you with this issues as you’re not providing enough context about the problem. Can you expand on this, please?

From the response, it’s related to an expired JWT token so I would start but looking at how that’s being generated and used in the request. Apart from that, we’d need to know more information.

---

<div class="post-metadata">

**Author:** ![maboudi](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@maboudi](https://community.postman.com/u/maboudi)\
**Post date:** [September 13, 2023, 4:10pm UTC](https://community.postman.com/t/jwt-401-unauthorized-error-when-sending-request/51728/3 "2023-09-13T16:10:27Z")

</div>

Thanks Danny for your answer 🙂  
I am not sure what I could provide as details , so in case the token is expired how could I fixe this issue ?

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/9/9/991b01999e56e5cd2ba55ae9983a65eb05accaaa.png)

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [September 13, 2023, 4:14pm UTC](https://community.postman.com/t/jwt-401-unauthorized-error-when-sending-request/51728/4 "2023-09-13T16:14:59Z")

</div>

If it’s expired, I assume you’d want to generate a new one and add that to the cookie value.

I’m not sure how you’re creating the token or the API you’re using, there’s not much else I can say 😓

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [October 28, 2023, 4:15pm UTC](https://community.postman.com/t/jwt-401-unauthorized-error-when-sending-request/51728/5 "2023-10-28T16:15:41Z")

</div>

Closed on October 28, 2023, 4:15pm UTC

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.
