I am integrating HubSpot OAuth into my application. When the user is already logged in to HubSpot, the OAuth flow works perfectly, and I receive the tokens without any issues. However, when the user is not logged in to HubSpot and logs in during the OAuth flow, I do not receive the tokens as expected.
Here’s the code: