Ben Borgers
Home
Blog
Twitter
GitHub
March 18, 2020
res.cookie("token", MY_TOKEN, { maxAge: MILLISECONDS_FROM_NOW_TO_EXPIRE });
There’s more options (other than maxAge) described in the Express documentation.
maxAge
res.clearCookie("token");
Get new posts by email (or RSS)!