Authentication Error

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>

I’m definitely not an expert on the subject, but I’ve been bitten a few times in setting up OAuth. If I recall correctly, the {code} has an expiration date, and that has caused me grief in the past. HTH.

I have created new client id and client secret but still getting the same error.