{
Size: a a a
{
IS
CG
{
m#
{
M
M
M
أ
CG
أ
{
if (!item) {
return;
}
return item
CG
CG
{
IM
class UserController {
registrationForParticipant = async (req, res, next) => {
^^^^^
try {
const { name, email, password } = req.body;
const userData = await UserService.registrationForParticipant(
name,
email,
password
);
res.cookie('refreshToken', userData.refreshToken, {
maxAge: 30 * 24 * 60 * 60 * 1000,
httpOnly: true,
secure: true,
});
res.status(200).send(userData);
} catch (err) {
next(err);
}
};
...
IS
IS
IM