Answer the question
In order to leave comments, you need to log in
How to implement a ban on switching to a route without authorization?
Good morning. Please tell me how it is possible using React Routing to prevent the transition to /register is acceptable if the server did not respond true. Suppose a person has entered the site and he is not authorized, he does not need to show the page for authorized users, only after authorization do he decide whether to let him in or not. Thank you.
UPD: Here is a very interesting implementation, in progress ..
Tyk
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question