Answer the question
In order to leave comments, you need to log in
How to store persistent data on the client?
Goodnight. There is a small SPA in which the client part is made on react. The question arose, how to store some permanent data (for example, the username, the company in which he works) on the client? Let me explain ...
The client sent a login / password, received a web token and some permanent information about himself (login, first name, last name, company, current balance, whatever). Then he performed some actions on the site (sent data to the server, received them from it). How to store this permanent information in the browser? local storage? it is possible to replace... each time to receive them from the server at any action? seems kinda dumb to me...
Answer the question
In order to leave comments, you need to log in
everything can be changed on the client, not only local storage. If you need to identify a person with 100% probability, then you need to refer to the database. As far as I know it's not stupid
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question