-
-
Notifications
You must be signed in to change notification settings - Fork 797
Closed
Description
Using feathersjs in a react-native project, running the authenticate hook appears to cause context to lose the reference to the socket connection, so it is not possible for that connection to join channels in subsequent hooks (or in the service functions themselves), and events are not received by the client. I've narrowed it down the cause of my issue to the line below:
| context.params = merge({}, params, omit(authResult, 'accessToken'), { authenticated: true }); |
Passing params as the first argument of merge (and getting rid of the empty object, thus mutating params instead of copying it) solves the issue in my case:
context.params = merge(params, omit(authResult, "accessToken"), {
authenticated: true
});
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels