Sign in

When developing a website that requires user authentication as well as user authorization the easy way is to store the user data in web storage. But in my case storing the user data in local storage or session storage could expose some vital info, which a bad actor could use to manipulate the requests. So the problems I had to solve were to make the user data available to many react components as well as hide them from the end-user.

There are some advanced methods for such scenarios and I wanted to solve this as easily as possible. I am…

sreehari

Tech enthusiast

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store