I am not able to see cookies in browser which are set by res.cookie below given is my code but still i am not able to set cookies how to set that
const token = generateToken(user._id);
res.cookie("access_token", token).status(200).json({
success: true,
user,
The cookie may not be visible in the browser's developer tools because it has not been set as a "secure" cookie. If you are developing on localhost or using an HTTP connection instead of HTTPS, your browser may not display cookies that are set as "secure" to prevent potential security vulnerabilities. Try setting the "secure" flag to false and see if that makes the cookie visible in the browser:
res.cookie("access_token", token, { secure: false }).status(200).json({
success: true,
user
});