# Pre-select a single social connection to skip Auth0 login for New Universal login

**URL:** <https://community.auth0.com/t/pre-select-a-single-social-connection-to-skip-auth0-login-for-new-universal-login/115674>\
**Category:** Get Help\
**Tags:** other-built-in-social-connections, connections\
**Created:** [September 7, 2023, 6:11pm UTC](https://community.auth0.com/t/pre-select-a-single-social-connection-to-skip-auth0-login-for-new-universal-login/115674 "2023-09-07T18:11:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lightenna](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lightenna/32/13075_2.png) [@lightenna](https://community.auth0.com/u/lightenna)\
**Post date:** [September 7, 2023, 6:11pm UTC](https://community.auth0.com/t/pre-select-a-single-social-connection-to-skip-auth0-login-for-new-universal-login/115674/1 "2023-09-07T18:11:39Z")

</div>

I’m trying to set up Auth0 for my SPA authentication. I have a single social connection (GitHub). GitHub is the only option, because all users will need accounts that can host git repos. I’m interested in GitLab, but I understand that social integration is not currently available.

Currently users are presented with the New Universal Login with a single “Continue to GitHub” button. I’m trying to improve the user experience. I understand historically it was possible to skip this step by passing `connection: 'connection-name'` to the `loginWithRedirect` call.

In 2019, the topic was covered for an old version (I think the ‘classic’ universal login):

> [@How to skip aut0 login page and directly redirect in to social login site?](https://community.auth0.com/t/how-to-skip-aut0-login-page-and-directly-redirect-in-to-social-login-site/28211):
>
> hi , is it possible to skip authO login page and directly navigate to gmail or facebook page? if yes plz tell me. the current process is myApp=\>authO Login page=\>social web site login page=\> Back to my App (if successful login page) i want to skip authO login page .

This does not seem to work any more for the New Universal Login. Several of the links in that thread are now dead, which is making it hard to confirm my suspicions:  
[https://auth0.github.io/auth0-spa-js/interfaces/redirectloginoptions.html#connection](https://auth0.github.io/auth0-spa-js/interfaces/redirectloginoptions.html#connection)

Please could someone confirm my assertions above and offer any guidance on how to implement this, or when the New Universal Login will be a feature-complete replacement for the Classic Universal Login?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [September 7, 2023, 8:59pm UTC](https://community.auth0.com/t/pre-select-a-single-social-connection-to-skip-auth0-login-for-new-universal-login/115674/3 "2023-09-07T20:59:28Z")

</div>

Hey there @lightenna welcome back!

> [@lightenna](#):
>
> Please could someone confirm my assertions above and offer any guidance on how to implement this, or when the New Universal Login will be a feature-complete replacement for the Classic Universal Login?

It looks like this can indeed be achieved in New Universal Login - It’s working for me using auth0-react [authorizationParams](https://auth0.github.io/auth0-react/interfaces/AuthorizationParams.html) for example:

```auto
 onClick={() => loginWithRedirect({authorizationParams: {
                      connection: "github"
                    }})}

```

Hope this helps!

---

<div class="post-metadata">

**Author:** ![lightenna](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lightenna/32/13075_2.png) [@lightenna](https://community.auth0.com/u/lightenna)\
**Post date:** [September 8, 2023, 7:06am UTC](https://community.auth0.com/t/pre-select-a-single-social-connection-to-skip-auth0-login-for-new-universal-login/115674/4 "2023-09-08T07:06:39Z")

</div>

That’s great thank you.

For anyone following this in the future, for a React SPA the loginWithRedirect call is here:

> **[Auth0Client | @auth0/auth0-spa-js](https://auth0.github.io/auth0-spa-js/classes/Auth0Client.html#loginWithRedirect)**
>
> Documentation for @auth0/auth0-spa-js

which takes a RedirectLoginOptions as an argument:

> **[RedirectLoginOptions | @auth0/auth0-spa-js](https://auth0.github.io/auth0-spa-js/interfaces/RedirectLoginOptions.html)**
>
> Documentation for @auth0/auth0-spa-js

which has an authorizationParams field:

> **[RedirectLoginOptions | @auth0/auth0-spa-js](https://auth0.github.io/auth0-spa-js/interfaces/RedirectLoginOptions.html#authorizationParams)**
>
> Documentation for @auth0/auth0-spa-js

> **[AuthorizationParams | @auth0/auth0-spa-js](https://auth0.github.io/auth0-spa-js/interfaces/AuthorizationParams.html)**
>
> Documentation for @auth0/auth0-spa-js

which has a connection field:

> **[AuthorizationParams | @auth0/auth0-spa-js](https://auth0.github.io/auth0-spa-js/interfaces/AuthorizationParams.html#connection)**
>
> Documentation for @auth0/auth0-spa-js

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [September 8, 2023, 7:40pm UTC](https://community.auth0.com/t/pre-select-a-single-social-connection-to-skip-auth0-login-for-new-universal-login/115674/5 "2023-09-08T19:40:17Z")

</div>

Thanks for the additional details! 🚀

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [September 22, 2023, 7:41pm UTC](https://community.auth0.com/t/pre-select-a-single-social-connection-to-skip-auth0-login-for-new-universal-login/115674/6 "2023-09-22T19:41:04Z")

</div>

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