You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I change something in a session using express, this data does not appear in the socket io. Even using session.save
Express:
app.get('/getUserGuilds',async(req,res)=>{if(req.session.user){oauth.getUserGuilds(req.session.user.access_token).then((userGuildsList)=>{constbotGuildsList=[]userGuildsList.forEach((element)=>{constguild=client.guilds.cache.get(element.id)// Бот проверяет только те гильдии, в которых он присутствует.if(guild?.members.cache.find(user=>user.id===client.user.id)){botGuildsList.push(element)}})req.session.guilds=botGuildsListreq.session.save(()=>{res.send({ botGuildsList })})})}else{res.status(401).send({})}})
When I change something in a session using express, this data does not appear in the socket io. Even using session.save
Express:
I get socket.request.session without guilds field
SocketIO:
Edit by @darrachequesne: format
The text was updated successfully, but these errors were encountered: