Login with provided connection

<button onClick={() => loginWithRedirect({
connection: “google-oauth2”
})}>Log In;

This doesn’t seems to work anymore, I want to login with google directly and do not want to show the auth0 default page with

Hi @sufyan

Welcome to the Auth0 Community!

Based on the response here you should change your button function and add authorizationParams to the parameters.

onClick={() => loginWithRedirect({authorizationParams: {
                      connection: "google-oauth2"
                    }})}

Thanks
Dawid

1 Like

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