Created the verificationValidation in the auth.ts validation
This commit is contained in:
parent
fb1e2af67b
commit
ddeb5a5c7f
@ -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()
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user