D
D
dfv1232018-04-16 08:50:50
React
dfv123, 2018-04-16 08:50:50

Why doesn't authentication work?

https://codesandbox.io/s/wooq0n6j3k
on the /private route for non-authorized users redirect to the main, authorized information
/signup sets the authenticated key to true
The problem is that the redirect does not respond to a non-authorized user, and does not show information to an authorized user

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-04-16
@dfv123

Forgot return in requireAuth.js, here it is:
connect(mapStateToProps, null)(Authentication);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question