Multiple active access token

oauth

#1

Hi Team,
I am using Contacts API to create/update the contact in Hubspot whenever new login created/updated on our website. I am planning to deploy this app on AWS lambda and I am using OAuth to access Hubspot API. so my question is can we have multiple active access token using same refresh key because there might be the possibility that AWS start multiple instances of my App?

I believe token will expire only after 'expire_in', It should not expire even if I refresh access key before 'expire_in'.


#4

Hey, @vipultiwari.

Yes, you are correct. You can generate and use multiple OAuth tokens from the same refresh token. Refreshing a token with this endpoint will not automatically invalidate previous access tokens created with the same refresh token.

I tested and confirmed with my own app!


#5