I am trying to work with my dev team and convert all the web forms and app sign in forms we have into Hubspot forms. For this, I am using Hubspot's Forms API and the web form embed code.
One such form on our website allows users to sign up using their Google email. Is there a way for me to capture that email as well and store it on Hubspot?
Any pointers or help documentation here will be appreciated.
Oct 23, 20205:42 AM - edited Oct 23, 20205:47 AM
Contributor
Hubspot forms and Google SSO
SOLVE
> One such form on our website allows users to sign up using their Google email. Is there a way for me to capture that email as well and store it on Hubspot?
as far as google oauth2 goes, a successful signin will return profile information back to your callback endpoint. Not 100% sure but I think you set up the scopes within google console so that you'd get their email, name etc. You would want to capture that on the app endpoint, and probably do some sort of database check:
user = askMyDatabase(data.email)
if (user === undefined) { submitDataToForm(data) }
Oct 23, 20205:42 AM - edited Oct 23, 20205:47 AM
Contributor
Hubspot forms and Google SSO
SOLVE
> One such form on our website allows users to sign up using their Google email. Is there a way for me to capture that email as well and store it on Hubspot?
as far as google oauth2 goes, a successful signin will return profile information back to your callback endpoint. Not 100% sure but I think you set up the scopes within google console so that you'd get their email, name etc. You would want to capture that on the app endpoint, and probably do some sort of database check:
user = askMyDatabase(data.email)
if (user === undefined) { submitDataToForm(data) }