Hi,
I'm using the ThirdPartyEmailPassword recipe, and wondering what's the best practice to whitelist emails that can sign-up/in to our app.
So, a user can signup/in when their email is whitelisted, and otherwise get sent to a 'contact us' form, and we get notified with their email.
I thought this can potentially be solved by one of these
- roles - create a default Guest role and User role that'll be assigned if the email is whitelisted
- claim-validators - create a custom claim validation for being whitelisted
- Post signin / signup callbacks - with this solution i'm not sure how to handle non-whitelisted users on the client
Do you have any recommendations?