julianlam / nodebb-plugin-session-sharing

Allows login sessions from your app to persist in NodeBB
MIT License
88 stars 65 forks source link

Connected User is the same for all #113

Closed mf0wzi closed 2 years ago

mf0wzi commented 2 years ago

Hello,

I have a strange behavior when I use nodebb with session-sharing plugin.

if a user is alone in the forum he is connected but when another user accesses the forum he is connected with the first user.

example user A is logged in to nodebb then another user let's say user B tries to log in they will not log in as user B but as user A.

Please can you help

julianlam commented 2 years ago

Hi @mf0wzi -- this sounds like an issue with the id or email you are sending in the shared cookie JWT. Perhaps you are sending in the same remote ID or email, and so the session-sharing plugin thinks that they are all user A.

Ensure that both the id and email in the token are different for different users.