You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior
I expect to not get Invalid Email error when creating an account / signing in.
Screenshots
export const authenticationSchema = z.object({
email: z.string().email().min(5).max(31),
password: z
.string()
.min(4, { message: "must be at least 4 characters long" })
.max(15, { message: "cannot be more than 15 characters long" }),
});
Desktop (please complete the following information):
OS: Windows 11 / WSL
Browser: Firefox
Version: Latest
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: