# Refresh Token and Access Token

**URL:** <https://community.hubspot.com/t/refresh-token-and-access-token/39198>\
**Category:** APIs & Integrations\
**Tags:** oauth, timeline-and-extensions-apis\
**Created:** [June 18, 2021, 8:08pm UTC](https://community.hubspot.com/t/refresh-token-and-access-token/39198 "2021-06-18T20:08:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kizus](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kizus/32/97852_2.png) [@kizus](https://community.hubspot.com/u/kizus)\
**Post date:** [June 18, 2021, 8:08pm UTC](https://community.hubspot.com/t/refresh-token-and-access-token/39198/1 "2021-06-18T20:08:02Z")

</div>

Hello all,  
I faced some issues when more than one instalation was happening to the same HubSpot Account. So let me describe the situation.  
Scenario:  
1) It is performed a **First** integration to the HubSpot **Account A** :  
- After all succed I receive my Access Token and Refresh Token. All good.  
2) It is perfomed a **second** integration to the **same** HubSpot **Account A** :  
- After all succed I receive my Access Token and Refresh Token.  
3) And so on.  
My question: is there the possibility of the **second/next** integrations **invalidate** the **Access Token** of the **first/previous** integrations in the same HubSpot **Account A**?  
I ask that because I faced a scenario like that, but I am not sure if this was caused by my mistake or this occurs indeed.  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [June 21, 2021, 9:37am UTC](https://community.hubspot.com/t/refresh-token-and-access-token/39198/2 "2021-06-21T09:37:28Z")

</div>

Hi @kizus ,  
Unfortunate this is not possibe in hubspot at this stage, but if you want to stop second scenarios then use database for restrict.

Hope this helps!

If we were able to answer your query, kindly help the community by marking it as a solution.  
Thanks and Regards.

---

<div class="post-metadata">

**Author:** ![kizus](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kizus/32/97852_2.png) [@kizus](https://community.hubspot.com/u/kizus)\
**Post date:** [June 22, 2021, 11:13am UTC](https://community.hubspot.com/t/refresh-token-and-access-token/39198/3 "2021-06-22T11:13:17Z")

</div>

Hi [@webdew](https://community.hubspot.com/t5/user/viewprofilepage/user-id/131510) , thanks for answering, but my main question is: A HubSpot account can have **multiple valid access tokens** or **just one valid token** for the integration?

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [June 23, 2021, 11:12am UTC](https://community.hubspot.com/t/refresh-token-and-access-token/39198/4 "2021-06-23T11:12:46Z")

</div>

Hi @kizus ,

Hubspot have multiple valid access tokens with refresh token but generated single at a time, every access token valid for 6 hours and you can refresh your access token with help of refresh token.

Hope this helps!

If we were able to answer your query, kindly help the community by marking it as a solution.  
Thanks and Regards.
