ability to blacklist temporary email services for ...
# ideas-and-suggestions
d
ability to blacklist temporary email services for sign up
s
This could be possible with a
BEFORE INSERT
hook on
auth.users
- If the domain matches,
RAISE EXCEPTION USING HINT 'this domain is blocked'
s
@User the only issue with this is that exceptions don't bubble all the way up to the API call of the signUp function call. I have a issue pending that highlighted this but its a more complex issue than I thought it would have been.
d
^
b
I kind of want to do something similar, but instead I want an approved domain and only email addresses that contain the domain can create an account. Would I face the same issues?
s
Yes, there is another downside to raising an exception on the signUp process where an email is sent even if the user wasn't created. We are quite busy with launch week but I will chat with someone in the auth team about this as soon as launch week is over.