APIs & Integrations

JZhao
Teilnehmer/-in

Does oauth key expire immediately?

lösung

I have setup oauth authentication based on this doc:

https://developers.hubspot.com/docs/api/working-with-oauth

 

The oauth key expires in 6 hours maximum. If I rotate a new key before that, will the old key becomes invalid immediately? Or is the old key still valid until 6 hours. Does this mean there will be multiple valid key in a certain time?

0 Upvotes
1 Akzeptierte Lösung
Teun
Lösung
Trendsetter/-in | Diamond Partner
Trendsetter/-in | Diamond Partner

Does oauth key expire immediately?

lösung

Hi @JZhao ,

 

The API limits apply to all tokens per install, so no, not each OAuth token has its own limits but each app install. All tokens together share the same API limits.



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


Lösung in ursprünglichem Beitrag anzeigen

5 Antworten
Teun
Trendsetter/-in | Diamond Partner
Trendsetter/-in | Diamond Partner

Does oauth key expire immediately?

lösung

Hi @JZhao ,


Like I commented in your other post, the API limits for OAuth apply per app per portal. So one install of your app has the 100/10 burst limit. A second install in a different portal will have a new burst limit of 100/10.



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


0 Upvotes
JZhao
Teilnehmer/-in

Does oauth key expire immediately?

lösung

Hi @Teun ,

 

Thanks for your reply. What I mean is the same install. Like you said, there could be multiple valid oauth tokens if I refresh before the old one expires. Is each oauth token using its own limit? or are all these tokens sharing the same api limit?

0 Upvotes
Teun
Lösung
Trendsetter/-in | Diamond Partner
Trendsetter/-in | Diamond Partner

Does oauth key expire immediately?

lösung

Hi @JZhao ,

 

The API limits apply to all tokens per install, so no, not each OAuth token has its own limits but each app install. All tokens together share the same API limits.



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


Teun
Trendsetter/-in | Diamond Partner
Trendsetter/-in | Diamond Partner

Does oauth key expire immediately?

lösung

Hi @JZhao ,

 

Yes, an access token will stay valid until it has expired, so if you refresh the access token before the old one has expired, you could have multiple tokens.



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


0 Upvotes
JZhao
Teilnehmer/-in

Does oauth key expire immediately?

lösung

Thanks for your reply. If there are multiple valid token, how does API limit apply? Does each token have separate API limit?

0 Upvotes