Hi everyone,
I’m facing a login issue with my app and would appreciate your help. The app is set up to allow only invited users who belong to an organization to log in, and the connection is configured for Google.
Currently, when a user who is not part of an organization tries to log in, they receive the error message:
“client requires organization membership, but user does not belong to any organization.”
What I’m trying to achieve is to either show a user-friendly error message or redirect them back to the login page. However, I’ve noticed that the user still gets registered in Auth0, which complicates things.
Has anyone encountered this issue before? Any tips on how to handle the error more gracefully or prevent unauthorized users from being registered would be greatly appreciated!
Thanks in advance!