first commit

This commit is contained in:
sajjadtalkhabi
2026-05-13 01:43:05 +03:30
commit d2a577f254
297 changed files with 36274 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
import { object, string } from 'yup'
import { phoneNumberRule } from '@/constants/rules/phoneNumberRule'
import { passwordRule } from '@/constants/rules/passwordRule'
import { passwordConfirmationRule } from '@/constants/rules/passwordConfirmationRule'
export const loginSchema = object().shape({
phoneNumber: phoneNumberRule,
password: string().required(),
})
export const loginWithCodeSchema = object().shape({
phoneNumber: phoneNumberRule,
})
export const signupSchema = object().shape({
firstName: string().required().min(3),
lastName: string().required().min(3),
phoneNumber: phoneNumberRule,
password: passwordRule,
passwordConfirmation: passwordConfirmationRule,
})
export const verifyCodeSchema = object().shape({
verifyCode: string().required().max(5),
})
export const resetPasswordSchema = object().shape({
password: passwordRule,
passwordConfirmation: passwordConfirmationRule,
})