I am working on a project in which I am creating a custom portal which connects HubSpot Oauth2 process. Everything is working fine. HubSpot api is really good.
I have a question. Let suppose any of our customers uninstall our app from his
portal setting -> Integration.
Is there any way that HubSpot inform me(api end point) that which portal uninstalled the app, so that i can delete data(token, refresh token) related to that portal from my side too?
@adnan, I would love to know how you dealt with the uninstalled user's token? When a user uninstalls, and my app goes to refresh the token, I recieve a BAD_REFRESH_TOKEN error. How does one know if something went wrong with the oAuth process or if a user uninstalled?