Closed lexstefan closed 2 months ago
P.S.:
Local Part: The local part of an email address can have a maximum length of 64 characters. Domain Part: The domain part of an email address can have a maximum length of 255 characters. When you combine the local and domain parts, the maximum length of a complete email address is 320 characters.
Zod validates local part of email & domain name together. Thus local + domain name adding up to 64 characters is reasonable.
👍 🥳
Config File
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Expected behavior I expect to not get
Invalid Email
error when creating an account / signing in.Screenshots
Desktop (please complete the following information):
Additional context Public emails can be larger than expected, mainly because people with the same name got them before. Thus someone might have an email like:
contact.doctor.rages.koothrappali@gmail.com
[43 characters] and still be legitimate. To be safe, i'd set 64 characters to be absolute max.