create-swiftstart
Version:
Automate the setup of Vite-React & Next.js projects with a pre-designed boilerplate structure using create-swiftstart. This tool saves your time and provides a clean starting point for your React or Next.js applications.
15 lines (11 loc) • 387 B
JavaScript
import * as yup from "yup";
export const signInSchema = yup.object().shape({
email: yup.string().email().required(),
password: yup.string().min(8).max(32).required(),
});
export const signUpSchema = yup.object().shape({
name: yup.string().min(3),
username: yup.string().min(4),
email: yup.string().email().required(),
password: yup.string().min(8).max(32).required(),
});