Skip to content

fix(server): correctly remove cookies#13

Open
alirezamirian wants to merge 1 commit into
ngx-utils:masterfrom
alirezamirian:master
Open

fix(server): correctly remove cookies#13
alirezamirian wants to merge 1 commit into
ngx-utils:masterfrom
alirezamirian:master

Conversation

@alirezamirian

@alirezamirian alirezamirian commented Mar 6, 2019

Copy link
Copy Markdown

cookieService.remove calls cookieService.put with the value of undefined.
When the value is undefined (or null), response.clearCookie should be used.
Alternatively, we could call response.cookie with proper expiry option and an empty string value, but this is already done in clearCookie method of express response object.

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.

1 participant