# Login with multiple connections break when using organisation invite email

**URL:** <https://community.auth0.com/t/login-with-multiple-connections-break-when-using-organisation-invite-email/71393>\
**Category:** Get Help\
**Tags:** organizations, connections, auth0\
**Created:** [October 15, 2021, 1:38pm UTC](https://community.auth0.com/t/login-with-multiple-connections-break-when-using-organisation-invite-email/71393 "2021-10-15T13:38:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Poolshark](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/poolshark/32/30418_2.png) [@Poolshark](https://community.auth0.com/u/Poolshark)\
**Post date:** [October 15, 2021, 1:38pm UTC](https://community.auth0.com/t/login-with-multiple-connections-break-when-using-organisation-invite-email/71393/1 "2021-10-15T13:38:47Z")

</div>

Hi there!

I’m dealing with various organizations and custom logins for such. I have an admin interface which let’s me create users. On creation I send an **Invitation Email** for a specific organization. Each organization has:

- a specific Database (Email + Password Auth) connection
- social connections

Everything works fine so far. The user receives an email and when clicking on it the user lands on my custom login page which redirects to the **New Universal Login Page** for the organization. I do this with

```auto
loginWithRedirect({ organization: orgId, invitation: inv })

```

When redirected the user sees the Universal Login Page for the organization with

- Username + Password (the email is already pre-filled in the email field)
- and Social Logins which are defined for this organisation

Unfortunately, the user **cannot decide** wether he want’s to sign up with a social login **OR** username + password but has to deal with whatever connection comes **first** in the list of connections for this organization!

I know that `loginWithRedirect` and the `/invitation` endpoint accept the `connection` parameter which would force a connection the user has to login with. But if this is the desired workflow, why do we even have the `connection_id` parameter optional? Why does the login screen even show the social logins for this organization?

Do I get something wrong here?

Thanks!

---

<div class="post-metadata">

**Author:** ![sgo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgo/32/13789_2.png) [@sgo](https://community.auth0.com/u/sgo)\
**Post date:** [October 19, 2021, 3:16pm UTC](https://community.auth0.com/t/login-with-multiple-connections-break-when-using-organisation-invite-email/71393/2 "2021-10-19T15:16:37Z")

</div>

Hi @Poolshark ,

In my testing, after providing the generated invitation code and org ID to an `/authorize` call I was directed to the “You’ve been invited!” page and was given the choice to sign up with email and password or “Continue with Google” as I had not passed a `connection_ID` when generating the invite, and these were the two enabled connections for my Organization “Org1”:

 ![Screenshot 2021-10-19 at 16.09.27](https://global.discourse-cdn.com/auth0/original/3X/4/1/4100c96859abe42732c4364a200fc76201f8abdd.png)

Please also note that the user must use the same email address as was specified on the invite, this is mentioned in the “Limitations” note on this page:

- [https://auth0.com/docs/organizations/configure/invite-members](https://auth0.com/docs/organizations/configure/invite-members)

When I passed a `connection_id` to the invitations endpoint, my database connection in this case, I no longer saw the Google option as expected:

 ![Screenshot 2021-10-19 at 16.14.35](https://global.discourse-cdn.com/auth0/original/3X/3/2/320d4fbcff4d56658014a749a5884f5dffe1122a.png)

So as far as I can tell this is working as expected, are you perhaps sending a connection ID when you didn’t intend to?

---

<div class="post-metadata">

**Author:** ![Poolshark](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/poolshark/32/30418_2.png) [@Poolshark](https://community.auth0.com/u/Poolshark)\
**Post date:** [October 28, 2021, 2:18pm UTC](https://community.auth0.com/t/login-with-multiple-connections-break-when-using-organisation-invite-email/71393/3 "2021-10-28T14:18:59Z")

</div>

Hi!

Sorry for my late reply & thanks for your answer!

It was my mistake since I was trying to use more than one database connection for one organization. Since I got rid of this, it works all fine!

---

<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:** [October 28, 2021, 2:24pm UTC](https://community.auth0.com/t/login-with-multiple-connections-break-when-using-organisation-invite-email/71393/4 "2021-10-28T14:24:54Z")

</div>

Wohoooo! Glad to hear that!

---

<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:** [October 29, 2021, 6:41am UTC](https://community.auth0.com/t/login-with-multiple-connections-break-when-using-organisation-invite-email/71393/5 "2021-10-29T06:41:29Z")

</div>


