How to do authentication with React&Redux?

Trying to make a registration and login with React&Redux. Use LocalStorage. But I don't know how to make the user's personal page where he can add to-do list.And that each user had their own list. Whether it is possible somehow to implement without the help of API and Fetch and the server? For example using React Router.While I did the registration and users is stored in the array but now I need to make an entry here so that when the user successfully logs tossed on his personal page. Tried to find some information but to no avail. Maybe there are some plugins that can help me .Can add code if needed. Thank you!
April 19th 20 at 12:22
1 answer
April 19th 20 at 12:24
Solution
I would like...
A separate file a La BD(or state radacovsky) where you would store the data. If authorization is successful(i.e. podmazyvanie the data from the database) would perform the function that redirects the user to his page.
props.history.push('/hadpageUrl')

Or just look at this page, there certainly was not word for word, but the correct reading can be something to get:
How to implement redirect to react?
Thank you I will watch!
When I check the user it is sent to an array of users. Then when you log on to that user it will have its own page where he can add a different tasks. Can I use this method to implement this functionality so that each user had their own separate page? - Jaden commented on April 19th 20 at 12:27
@Jaden, if I understand you correctly, you want something like this logic
//... something another function before it
const somethingFun = (userLoginData) => {
 props.store.userArray.map(el => {
 if(el.userLogin === userLoginData) {
 return el
}
})
}

Of course, I could somewhere make a mistake.... But anyway, I think you understand from what and how we should proceed - Raheem commented on April 19th 20 at 12:30
@Raheem, Yes, thank you so much! You helped me a lot) - Jaden commented on April 19th 20 at 12:33

Find more questions by tags ReduxReact