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
We need to implement form validation for user Sign-Up and Sign-In using Yup. This ensures proper data integrity and prevents incorrect user inputs. The validation schema should be placed inside the utils folder with the file name:
📂 utils/authValidationSchema.js
Tasks
Create authValidationSchema for Validation
Fields for Sign-In:
email: Ensures the input is a valid email format.
password: Enforces a secure password policy (minimum 8 characters, at least 1 uppercase, 1 lowercase, 1 special character).
Fields for Sign-Up:
Username (min length 3).
Email (valid email format).
Password (min 8 characters, must contain uppercase, lowercase, special character, and number).
Confirm Password (must match the password).
Use Yup for enforcing these constraints.
Implement Schema for Sign-Up & Sign-In
Sign-Up & Sign-In Schema (authValidationSchema)
Reuse validation rules for consistency.
Export and Organize Validation in authValidationSchema.ts
Ensure all schemas are properly structured and exported for use in authentication forms.
Validation Rules
✅ Email: Must be a valid email format.
✅ Password: Minimum 8 characters, 1 uppercase, 1 lowercase, 1 special character.
✅ Confirm Password: Must match the entered password.
The text was updated successfully, but these errors were encountered:
My name is Sudipta Paul a fullstack and blockchain developer with an experience of more than two years and have worked on many opensource projects and would love to work on this too
It's SuperFranky here, i am a diamond and returning contributor. As always I am excited to be participating in the open source week. I am a frontend and blockchain developer with over 3+ years of experience and have contributed to a variety of interesting projects in the Web3 space. My expertise is in React, Next.js, Solidity,Rust and Cairo. My most recent cairo project was building an erc1155 smart contract with programmable licensing. So i am very familiar with writing cairo and testing. I look forward to contributing to this project. Thank you for considering my application.
Description
We need to implement form validation for user Sign-Up and Sign-In using Yup. This ensures proper data integrity and prevents incorrect user inputs. The validation schema should be placed inside the
utils
folder with the file name:📂
utils/authValidationSchema.js
Tasks
authValidationSchema
for ValidationFields for Sign-In:
Fields for Sign-Up:
Use Yup for enforcing these constraints.
authValidationSchema
)authValidationSchema.ts
Ensure all schemas are properly structured and exported for use in authentication forms.
Validation Rules
✅ Email: Must be a valid email format.
✅ Password: Minimum 8 characters, 1 uppercase, 1 lowercase, 1 special character.
✅ Confirm Password: Must match the entered password.
The text was updated successfully, but these errors were encountered: