Problem Statement
Users are registering with email domains that we don’t want to allow.
Solution
If nothing is blocking or denying, Auth0 databases will allow any valid email addresses.
Using a Pre-User Registration Action, you can parse the email or use a RegEx to filter domains.
- https://auth0.com/docs/customize/actions/flows-and-triggers/pre-user-registration-flow#deny-registration-by-location
- https://auth0.com/docs/customize/actions/flows-and-triggers/pre-user-registration-flow/event-object
- https://auth0.com/docs/customize/actions/flows-and-triggers/pre-user-registration-flow/api-object