Intro to Auth Code flow or Authorization code flow
HubSpot account creation, app creation and implementing Auth code grant type authentication
Testing the API using HubSpot native playground
Using Postman App to get the JSON response
Creating a LWC component and exposing it as a Lightning Tab
Why do I need to use window.location.href and not Navigation Mixin?
I need to change the redirect URL and make things dynamic
Inject the Auth code from VF to LWC and hold the state of the data
Trade the auth code for access_token
Extract the access_token and get the company record using the token
Alright, let's make a POST callout now and serialize the input
Let's deserialize the batch companies info JSON response we got back
Use Custom Metadata Types to replace hardcoded client_id and client_secret
Use Custom Settings to store access_token, refresh_token and expires_in info
Check if access_token is valid or not and reuse it
Executing all three scenarios, fresh login, valid access_token and expired access_token