sullof
02/14/2023, 9:18 PMpasswordless
recipe, the user can spam the service creating different accounts just using, for example
- newuser@gmail.com
- new.user@gmail.com
- newuser+two@gmail.com
etc.
Right now, we enforce that on our side and we clean any user's email removing aliases. It looks like we cannot tell SuperTokens to enforce that.
It would be very good if SuperTokens adds an option to activate a restriction.
An alternative solution would be if there is a hook, like preValidate
, that we can set up to make validation on the email.
It would also solve the common use-case where the app can accept only users that have an email on a certain set of domains.rp
02/15/2023, 4:15 AMsullof
02/15/2023, 4:36 AMrp
02/19/2023, 5:07 AMsullof
02/19/2023, 5:40 AM