Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Prevent setCookie from mutating authOptions #414

Merged
merged 1 commit into from
Feb 7, 2017
Merged

Prevent setCookie from mutating authOptions #414

merged 1 commit into from
Feb 7, 2017

Conversation

adrien-k
Copy link
Contributor

@adrien-k adrien-k commented Feb 6, 2017

setCookie is mutating authOptions, setting a constant value for expires attribute which is then re-used on every further setCookie calls.

After a while, cookies are sent already-expired...this PR should fix it (is it a proper way to do it ?).

Thanks for this awesome framework !

@daffl daffl merged commit dcdc258 into feathersjs-ecosystem:master Feb 7, 2017
@daffl
Copy link
Member

daffl commented Feb 7, 2017

Thank you for the fix and for the test! We'll release it shortly.

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

Successfully merging this pull request may close these issues.

2 participants