79218348

Date: 2024-11-23 16:41:46
Score: 2
Natty:
Report link

i think the best way to expires the cookie is to just make the token null and set the expire time to now #code

res.cookie("token", null, { expires: new Date(Date.now() - 1000), httpsOnly: true, }

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Anand Sinha