const token = jwt.sign({ id: validUser._id }, process.env.JWT_SECRET);
const { password: pass, reconfirmpassword, ...rest } = validUser._doc;
res
.cookie("access_token", token, { httpOnly: true, sameSite: 'None', secure: true })
.status(200)
.json(rest);
} catch (error) {



알려주세요 ㅠㅠ