APIs & Integrations

Not applicable

Multiple active access token

SOLVE

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'.

0 Upvotes
1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Multiple active access token

SOLVE

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!

Isaac Takushi

Associate Certification Manager

View solution in original post

2 Replies 2
tango19
Member

Multiple active access token

SOLVE

Hi,

 

Did you get this going?

 

I would like to achive the same.

 

Thanks

 

Todd

0 Upvotes
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Multiple active access token

SOLVE

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!

Isaac Takushi

Associate Certification Manager