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

Feat/clear cookie support #42

Merged
merged 4 commits into from
Aug 14, 2019

Conversation

techyrajeev
Copy link
Contributor

No description provided.

Copy link
Member

@jsumners jsumners left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t see the point if you still have to provide the details for the cookie. You can already just set a cookie with an expired time. I would think a utiliy function such as this would take a name only and use the data already known about the available cookies.

@techyrajeev
Copy link
Contributor Author

techyrajeev commented Aug 13, 2019

@jsumners yes clearCookie just takes the name of the cookie to clear up and optional options object which gets merged with default options to clear the cookie. So you don't have to provide the full details of the cookie, just name of cookie will clear up the cookie.

Copy link
Member

@jsumners jsumners left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Eomm Eomm merged commit 34ed3cc into fastify:master Aug 14, 2019
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

Successfully merging this pull request may close these issues.

4 participants