How to create & link social accounts with organizations?

PatrickHeneise
Thu, 22 Jan 2026 01:48:53 +0000

This is what Claude tells me the problem is:

1. User clicks “Link GitHub” → useGitHubLinking redirects to https://{domain}/authorize?..

2. Auth0 authorization endpoint checks organization_usage = “require” on the client

3. Auth0 blocks the request because we’re not passing an organization parameter (by design - the secondary account doesn’t belong to any org yet)

4. Auth0 redirects back to our callback with error=invalid_request&error_description=client requires organization membership…

5. Our callback code reads the error parameters and displays them (working correctly)

Is that truly the problem, that I require the organization? The (GitHub) user is created in Auth0 without the org, so linking it to an account with org should be possible, no?