Answer the question
In order to leave comments, you need to log in
How to implement a ban on the transition to url addresses if the user is not authorized?
I want to implement the backend part, but I don’t understand how to implement a ban on going to url addresses. That is, there is a url: localhost:3000/log_in, if the user is in the database, then there is a transition to localhost:3000/user, but you can also go to localhost:3000/user without authorization. How to fix it?
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