# Getting unauthorized/access\_denied on getting token using refresh token

**URL:** <https://community.auth0.com/t/getting-unauthorized-access-denied-on-getting-token-using-refresh-token/88378>\
**Category:** Get Help\
**Tags:** refresh-tokens, nextjs\
**Created:** [August 9, 2022, 2:35am UTC](https://community.auth0.com/t/getting-unauthorized-access-denied-on-getting-token-using-refresh-token/88378 "2022-08-09T02:35:32Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [August 9, 2022, 4:09pm UTC](https://community.auth0.com/t/getting-unauthorized-access-denied-on-getting-token-using-refresh-token/88378/3 "2022-08-09T16:09:09Z")

</div>

Hi @wkjljadlskfjklasjflw ,

Welcome to the Auth0 Community!

I understand that you have encountered the `401 Unauthorized` error when trying to get a new access token using a refresh token.

After testing this myself, I could successfully get a new access token using a refresh token. The only way I could reproduce the `401 Unauthorized` error is when I used an incorrect **client\_id** and/or **client\_secret** in my request.

Given that, could you please double-check that your **client\_id** and **client\_secret** values are correct?

Please let me know your findings.

Thank you.

---

_[View the full topic](https://community.auth0.com/t/getting-unauthorized-access-denied-on-getting-token-using-refresh-token/88378)._
