# Login with Google Directly

**URL:** <https://community.auth0.com/t/login-with-google-directly/48323>\
**Category:** Get Help\
**Created:** [August 19, 2020, 3:37pm UTC](https://community.auth0.com/t/login-with-google-directly/48323 "2020-08-19T15:37:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![trevordammon](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/trevordammon/32/13337_2.png) [@trevordammon](https://community.auth0.com/u/trevordammon)\
**Post date:** [August 19, 2020, 3:37pm UTC](https://community.auth0.com/t/login-with-google-directly/48323/1 "2020-08-19T15:37:54Z")

</div>

Hello all,

I am wondering if there is a way to put a button on the homepage of my React App which lets the user login with Google directly. I basically want to eliminate the step of clicking the Log In button and then clicking the Continue with Google button.

I should point out that I am using the auth0-react SDK

---

<div class="post-metadata">

**Author:** ![VnceB](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vnceb/32/12935_2.png) [@VnceB](https://community.auth0.com/u/VnceB)\
**Post date:** [August 19, 2020, 6:12pm UTC](https://community.auth0.com/t/login-with-google-directly/48323/2 "2020-08-19T18:12:17Z")

</div>

You could add the following parameter in your SPA Auth0 SDK configuration:

> connection: ‘google-oauth2’

---

<div class="post-metadata">

**Author:** ![trevordammon](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/trevordammon/32/13337_2.png) [@trevordammon](https://community.auth0.com/u/trevordammon)\
**Post date:** [August 19, 2020, 6:29pm UTC](https://community.auth0.com/t/login-with-google-directly/48323/3 "2020-08-19T18:29:22Z")

</div>

Hi VnceB,

Where would I set that configuration. Is there a prop that gets passed into my `loginWithRedirect` so I can separate my Log In button from my Log In with Google button?

---

<div class="post-metadata">

**Author:** ![adam.kramer](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adam.kramer/32/38691_2.png) [@adam.kramer](https://community.auth0.com/u/adam.kramer)\
**Post date:** [February 12, 2023, 8:03pm UTC](https://community.auth0.com/t/login-with-google-directly/48323/4 "2023-02-12T20:03:26Z")

</div>

A bit late but perhaps helpful as the sdk evolves. To login into a social provider direct from app I needed to structure the request as follows:

```auto
loginWithRedirect({
  authorizationParams: {
     connection: "<your provider here, e.g. 'google-oauth2', 'apple', 'linkedin', etc>"
  }
});

```

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 13, 2023, 8:08am UTC](https://community.auth0.com/t/login-with-google-directly/48323/5 "2023-02-13T08:08:22Z")

</div>

Glad you have figured it out and thanks for sharing with the rest of community!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 22, 2023, 11:22am UTC](https://community.auth0.com/t/login-with-google-directly/48323/6 "2023-02-22T11:22:38Z")

</div>


