8000 fix(authentication): Retain object references in authenticate hook by daffl · Pull Request #1675 · feathersjs/feathers · GitHub
[go: up one dir, main page]

Skip to content

fix(authentication): Retain object references in authenticate hook#1675

Merged
daffl merged 2 commits intomasterfrom
hook-params-1629
Nov 11, 2019
Merged

fix(authentication): Retain object references in authenticate hook#1675
daffl merged 2 commits intomasterfrom
hook-params-1629

Conversation

@daffl
Copy link
Member
@daffl daffl commented Nov 11, 2019

Lodash _.merge makes a copy of objects including the connection which breaks the reference to the required object. To fix this problem, we still create a copy of params (so the original version does not get modified) but use the shallow Object.assign.

Closes #1629
Closes #1641
Closes #1671

@daffl daffl changed the title fix: Retain object references in authenticate hook fix(authentication): Retain object references in authenticate hook Nov 11, 2019
@daffl daffl merged commit e1939be into master Nov 11, 2019
@daffl daffl deleted the hook-params-1629 branch November 11, 2019 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant

0