This link shows an example of simple authorization using AngularJS.
The problem is that if you log in, and then refresh the page, then it rolls me back to the login page.
Tell me what the problem is, how to solve it?
This link shows an example of simple authorization using AngularJS.
The problem is that if you log in, and then refresh the page, then it rolls me back to the login page.
Tell me what the problem is, how to solve it?
It would be better to leave a response in the comments, but so far the reputation is not enough. You store the data in session.js, the scope of which is updated when the page is updated. Accordingly, there is no more data about the user in the session after the page has been updated, since it is rendered again.
Source: https://ru.stackoverflow.com/questions/633164/
All Articles