Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove cookie #21

Open
Odonno opened this issue May 26, 2021 · 2 comments
Open

Remove cookie #21

Odonno opened this issue May 26, 2021 · 2 comments

Comments

@Odonno
Copy link

Odonno commented May 26, 2021

There are functions to get/set cookies but none to remove an existing cookie.

@tylerwolff
Copy link
Owner

@Odonno this seems reasonable since there are already exported functions for get/set. Feel free to open a PR. Otherwise, I'll see if I can get around to adding this in the next couple weeks

@Odonno
Copy link
Author

Odonno commented Jun 9, 2021

I managed to do it this way:

setCookie(COOKIE_KEY, "", { days: 0 });

I don't know if it's the fastest/best way but that could be easy to create a removeCookie function from that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants