-
-
Notifications
You must be signed in to change notification settings - Fork 763
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
User object missing in logout callback args under certain conditions #941
Comments
This indeed seems like a strange issue since nothing in that process should be doing anything OS specific. I'll see if I can reproduce it in my local Linux test environment. |
From @kkkrist on May 3, 2018 13:6 Thanks for looking into it, it's very much appreciated! I have created a test case here: https://github.com/kkkrist/feathersjs-logout-callback-test Curiously enough it does always receive an almost empty
I'm almost sure I did miss something… but what? Thanks again! |
From @bertho-zero on May 3, 2018 14:56 This is probably due to feathersjs-ecosystem/authentication#665. |
Oooh, this actually might be an issue because |
From @kkkrist on May 3, 2018 19:2 Confirmed, that's it. The unstripped params can also be found in Is P.S.: It's obvious now, but this was never an OS specific issue. It turned out I've .gitignored package-lock.json some time in the past, so |
From @ricardopolo on July 17, 2018 22:29 I confirm this issue. I am always using |
Hello, I'm facing the same. Any news about this bug? EDIT: I found the user object in a weird location, so I'm using it:
|
This has been addressed in Feathers v4 authentication. See the Migration guide for more information on how to upgrade. |
From @kkkrist on April 17, 2018 21:18
I have a weird problem using
app.on('logout', callback)
on the server.In my macOS-based dev environment it works just fine. The callback receives fully populated
result
andmeta
objects as arguments, of which I'm usingmeta.connection.user
to update some data in the db.In my Linux-based production environment however,
meta.connection
contains just this:Both environments use node v9.11.1 with npm packages installed from an identical
package.json
. The only real difference in setup is a reverse proxy on the production server, but bypassing it doesn't change anything.From
package.json
:What's going on here? Where should I look at next? Any pointers would be much appreciated!
– Christian
P.S.: When looking for a quick workaround, I've discovered a Symbol key in
meta.connection
which is also present in the production environment and contains all data needed. So my workaround now looks like this:Copied from original issue: feathersjs-ecosystem/socketio#116
The text was updated successfully, but these errors were encountered: