Closed janetscanlon closed 2 weeks ago
https://socket.io/how-to/use-with-passport Take a look at this
Hi Dane, I cited this in the issue. I've looked over this resource. Looking for guidance on how to parse through it and what I need to apply with our repo infrastructure
@janetscanlon If you get blocked on this, please reopen the issue!
Description
Your Real Name Janet (and Mustafe)
What do you want to happen? I want to be able to access user context from passport/session while using socket.io and the socket.io pg adapter.
What is actually happening? I am able to successfully create a table row with socket.io and socket.io pg adapter. However, now I'd like to have access to req.user.id and other properties. And perhaps the answer is I just have to send that user from the client side instead of having the convenience of retrieving it from passport... Since passport is not directly compatible with socket.io
Screenshots / Code Snippets
What did you try? Who did you ask?
googling, spiking with Mustafe.
https://github.com/socketio/socket.io/tree/main/examples/passport-example https://socket.io/how-to/use-with-passport
it looks like there should be a way to integrate passport with socket.io but I don't know enough about the staring repo infrastructure to apply what they're trying to tell me in the documentation (it's not great documentation). I don't know enough about middleware, passport etc to apply.
What branch is your code on? Did you git push?
feature/messagestutorial
When was the last time you took a break?
just came back from a dinner with some girlies!