Add concurrently

This commit is contained in:
Ralex91
2024-02-08 16:32:05 +01:00
parent 31122b9d2f
commit 8a9b8df7d2
14 changed files with 252 additions and 298 deletions

12
socket/validator.js Normal file
View File

@@ -0,0 +1,12 @@
import yup from "yup"
export const usernameValidator = yup
.string()
.required("Username is required")
.min(4, "Username cannot be less than 4 characters")
.max(20, "Username cannot exceed 20 characters")
export const inviteCodeValidator = yup
.string()
.required("Invite code is required")
.length(6, "Invalid invite code")