HubSpot login (Google SSO)
Input
code optional6-digit HubSpot log-in code from the email HubSpot sends when it does not recognise the device. Not needed on a device HubSpot already trusts, or when the browser already has a live HubSpot session.
email optionalGoogle account to sign in with (e.g. [email protected]). Required when a fresh sign-in is needed: HubSpot's login is identifier-first, so the Google button only renders after an email is submitted. Ignored when the browser is already signed in, so it's optional overall.
Output
url requiredThe HubSpot URL the run ended on, an app or portal-chooser route, never /login or /login/confirm-to-login.
step requiredalready when the browser already had a live HubSpot session, code when a device-confirmation code was entered, sso when Google SSO alone was enough.
loggedIn requiredAlways true on a successful return, a run that cannot sign in throws instead.
note optionalaccount optionalThe Google account the SSO flow was driven with. Null on the already path.
