maticzav/nookies

`options` parameter not specified in `destroyCookie` doc

Closed this issue · 3 comments

I wanted to destroy a cookie called authToken, on client side. According to the documentation, I used:

destroyCookie(undefined, 'authToken');

But it wasn't working. After looking to the source code, I found that I wasn't specifying the good options (but the doc doesn't mention the options).

Same for me, it wasn't destroyed because I wasn't using domain and path options, but I set them when I created the cookie.

there you go: #201

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.