When I am trying to authenticate using OAuth 2.0 getting following error :
" Couldn’t complete the connection
This install link is no longer valid. Please visit HubSpot’s App Marketplace to install this app. "
Our authorization Like : https://app.hubspot.com/oauth/authorize?client_id=${CLIENT_ID}&scope=contacts&state=${
state.key
}&redirect_uri=XXXXXXXXX"
And our access token post request :
{
method: 'POST',
url: `https://api.hubapi.com/oauth/v1/token`,
data: `grant_type=authorization_code&client_id=${CLIENT_ID}&client_secret=${CLIENT_SECRET}&redirect_uri=XXXXXXXXXX&code=${code}`,
headers: {
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8',
},
}<div>Lemme know what else you need. </div>