How to create & link social accounts with organizations?

PatrickHeneise
Wed, 21 Jan 2026 19:08:12 +0000

Thanks @nik.baleca! I’ve been going through several iterations based on the account linking docs, hence my question here as it’s not working as expected.

I tried both the popup and redirect to the auth0 screen to authenticate GitHub. The problem with the account linking is that both accounts need to exist, so I initiate the account creation and that works. The session/JWT is not replaced, I’m still logged in with my username/password account, but I get an error that the new user requires organization membership. In the callback from auth0 I don’t seem to get the secondary account ID, so I can’t send that to my backend to link the accounts.

I’m using the react-sdk and followed this example here auth0-link-accounts-sample/SPA/public/js/app.js at master · auth0-samples/auth0-link-accounts-sample · GitHub - what am I missing?