K
K
keyotor2021-09-04 23:14:01
React
keyotor, 2021-09-04 23:14:01

Is it possible to store user data in state?

Please tell me, for example, the user is logged in, the client receives user data in response from the server, for example, username, isLoggedIn, etc., except for the password, of course. Whether it is possible to write down this data in state that in the subsequent to use this data somewhere already on the client? How is it in terms of security? And is it normal in general? If not, what are the options?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question