APIs & Integrations

woutdegeyter
Membre

Expiry time of oauth token is wrong

Dear,

We have noticed that the expiry time we get in our authentication token is indicated as 8 hours although it is in essence only 6 hours.

We have now changed our code so to catch this, but the time indicated in the token should be correct.

Could you please investigate this?

Thanks in advance.
Kind regards,
Wout

0 Votes
1 Réponse
Dadams
HubSpot Employee
HubSpot Employee

Expiry time of oauth token is wrong

Hi @woutdegeyter

Are you working with the new OAuth 2.0 tokens or the older OAuth system? New tokens expire in 6 hours, and the expires_in value you get when generating the token should reflect that.

Also, generating a new token will invalidate any previously generated token, so if you’re renewing a token early, it would deactivate the previous token before its original expiration time.

0 Votes