# 401 Unauthorized Post /oauth/token using Resource Owner Flow

**URL:** <https://community.auth0.com/t/401-unauthorized-post-oauth-token-using-resource-owner-flow/78613>\
**Category:** Get Help\
**Tags:** password, api, login\
**Created:** [February 20, 2022, 2:33am UTC](https://community.auth0.com/t/401-unauthorized-post-oauth-token-using-resource-owner-flow/78613 "2022-02-20T02:33:44Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![fernando.torres](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fernando.torres/32/36748_2.png) [@fernando.torres](https://community.auth0.com/u/fernando.torres)\
**Post date:** [May 31, 2022, 4:08am UTC](https://community.auth0.com/t/401-unauthorized-post-oauth-token-using-resource-owner-flow/78613/5 "2022-05-31T04:08:32Z")

</div>

Hello everyone,

I had this problem, and noticed that in Postman or with cURL I received the access token with no problems, while when I was trying with Node (axios) it did not work. I stumbled across [this](https://community.auth0.com/t/resource-owner-password-flow-works-fine-with-postman-but-throws-401-unauthorised-with-axios-node-js/68537), and just deleting the headers in the request fixed the issue.

Regards,

Fernando

---

_[View the full topic](https://community.auth0.com/t/401-unauthorized-post-oauth-token-using-resource-owner-flow/78613)._
