Created the verificationValidation in the auth.ts validation

This commit is contained in:
Mathias Wagner 2023-01-21 14:01:28 +01:00
parent fb1e2af67b
commit ddeb5a5c7f
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

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()
});