How to create & link social accounts with organizations?

PatrickHeneise
Wed, 21 Jan 2026 00:26:46 +0000

Hi there. I’m struggling with a relatively basic use case and can’t find an answer for it.

I have “Organizations” turned on and required for my app. Users can sign in via email/pw or a social provider (ie GitHub). I’m trying to add a “Add a social provider” function, but the frontend & backend flows are distinct from another and if the email doesn’t match for the two accounts, there’s somehow no way to link them. The callback from GitHub works and auth0 creates a new social user, but the primary user id is missing in the backend request, and the frontend doesn’t get the secondary (social) user id, so I can’t connect the two?

What’s the best way to handle this?