I’m FrontEnd dev who isn’t that familiar to security.
Currently, Im storing user’s userId at web localStorage.
By using userId , we could request to server about user Info.
The problem is that, Im little bit afraid whether there could be potential danger about this method of handling userId.
Of course If user tried to request with other userId value, they could get other users data(But not private infos like email or password blah blah)
The reason why I allow user to get other user’s data is to check profile of other user when they want ( like on profile page)
To conclude , on my localstorage, userId is stored, which can let user to less login, to check if user is authenticate in current route. Is this not vulnerable?
Can you guys give me advise whether its enough or not?