Every time a new user connects to my node js server, server updates every users cookies that is currently connected to the server

Hey I have a node js server and it is using firebase auth to get uid for every users and I am storing that uid as cookies and every time any user connects to the server whether they log in or sign up the server updates cookies of every user that is currently connected to the server and because of that every user gets logged in as the new user that just signed in

That is a problem. However, it would make it easier to help you if you could post a link to your GitHub repo containing the code.

1 Like