Our Auth0 app uses the ‘Business Users’ model and Login Flow of Prompt for credentials as this is the desired behavior. Which means only users bound to an Organization can sign in or sign up. The only way to prevent Social Login is through Post Login Action as described many times in the community channels.
The issue is that Post Login action is not being executed since the new not-bounded to organization user׳s browser is attempting to redirect to a URL that should contain organization_id:
“http://localhost:3000/?error=invalid_request&error_description=client requires organization membership%2C but user does not belong to any organization&state=XXXXXXXXXXXX”.
And the user experiencing an infinite loop without any knowledge it does not belong to an organization.
I want to be able to tell the user gracefully that he doesn’t belong to any Organization and make Post login action runs properly.
Really desperate for help. Thanks.