APIs & Integrations

Xalbi
Participant

keep track of the user, installing app

SOLVE

Hello,


I saw in the github example that i can use session to keep track of the user who install my app.

But is it possible to send a custom_field with in the install URI and get it back along with the 'code' in the callback.

Or is there another way to keep track of the user without using session (nodejs)

thnx

0 Upvotes
1 Accepted solution
cbarley
Solution
HubSpot Alumni
HubSpot Alumni

keep track of the user, installing app

SOLVE

Hi @Xalbi, you must use the state parameter, and cannot send custom fields in the redirect URI. Adding a custom field set to a value ends up stripping the value from the URL. Using a custom value for state should be enough to keep track of a user's session.

View solution in original post

2 Replies 2
cbarley
Solution
HubSpot Alumni
HubSpot Alumni

keep track of the user, installing app

SOLVE

Hi @Xalbi, you must use the state parameter, and cannot send custom fields in the redirect URI. Adding a custom field set to a value ends up stripping the value from the URL. Using a custom value for state should be enough to keep track of a user's session.

Xalbi
Participant

keep track of the user, installing app

SOLVE

Hi @cbarley,
Thank you very much 

0 Upvotes