import Joi from 'joi';

const register = Joi.object({
    name: Joi.string().max(30).required(),

    email: Joi.string().email().required(),

    password: Joi.string().min(6).required(),
    // can add an field like confimPassword and cheked that the password is equal to the confirmPassword
    idSpotify: Joi.string(),
    idFlad : Joi.string(),
});

const login = Joi.object({
    email: Joi.string().email().required(),
    password: Joi.string().required(),
});

export default { register, login };