Created the verificationValidation in the auth.ts validation

This commit is contained in:
2023-01-21 14:01:28 +01:00
parent fb1e2af67b
commit ddeb5a5c7f

View File

@ -6,5 +6,10 @@ export const loginValidation = Joi.object({
});
export const tokenValidation = Joi.object({
token: Joi.string().hex().min(96).max(96).required()
token: Joi.string().hex().length(96).required()
});
export const verificationValidation = Joi.object({
token: Joi.string().hex().length(96).required(),
code: Joi.number().integer().required()
});