# Refresh token mismatch

**URL:** <https://community.hubspot.com/t/refresh-token-mismatch/100761>\
**Category:** APIs & Integrations\
**Tags:** oauth\
**Created:** [February 22, 2024, 11:22am UTC](https://community.hubspot.com/t/refresh-token-mismatch/100761 "2024-02-22T11:22:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IlkhomUmarov](https://avatars.discourse-cdn.com/v4/letter/i/7bcc69/32.png) [@IlkhomUmarov](https://community.hubspot.com/u/IlkhomUmarov)\
**Post date:** [February 22, 2024, 11:22am UTC](https://community.hubspot.com/t/refresh-token-mismatch/100761/1 "2024-02-22T11:22:04Z")

</div>

Hello, HubSpot community,

I’m facing a recurring MISMATCH\_REFRESH\_TOKEN\_CLIENT error with the HubSpot API, specifically during the token refresh process. Despite researching the issue in the community forum and utilizing AI tools, I’ve been unable to resolve it.

Here’s a breakdown of my setup and steps taken:

- **Application:** I have a private application within my HubSpot Developer account, connected to my Sandbox account.
- **Token Refresh:** After access token expiration, I attempt to refresh it using the /oauth/v1/token endpoint, providing the client secret, client ID, refresh token, and “refresh\_token” grant type (as per HubSpot documentation).
- **Error:** The response consistently includes the MISMATCH\_REFRESH\_TOKEN\_CLIENT error code and message: refresh token was not issued to this client.

It only happens after the First access token has expired and I’m totally sure I’m using the same ClientId and refresh token provided by Auth process

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [February 22, 2024, 10:36pm UTC](https://community.hubspot.com/t/refresh-token-mismatch/100761/2 "2024-02-22T22:36:40Z")

</div>

Hi, @IlkhomUmarov 👋 Welcome to our community!

One thing to try as a debugging step, double-check that the client ID and refresh token used in the token refresh request exactly match those used in the initial authorization process. Also, ensure that the refresh token hasn’t been invalidated or expired, as this could also trigger the error. If the issue keeps happening, you can try generating a new refresh token and starting the process again to see if the error is replicated.

Best,

Jaycee
