Continue with Google button on custom signup page

Hi,

I am using Google OAuth integration and its working quite well with Universal Login Page.

However, in my React app I have setup a custom signup form and then create the users via Management API. How can I add the “Continue with Google” button to my custom signup form so it works in the same way it does on the Universal Login Page?

Thanks!

Hi @indicava ,

You would need your button to call /authorize with the connection=google-oauth2 querystring parameter in place, this would skip rendering the Universal Login page.

In the React SDK this could be done by calling loginWithRedirect and specifying the connection in the options:
https://auth0.github.io/auth0-react/interfaces/auth0_context.redirectloginoptions.html

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.