I am not aware that something automagical solution exists, i solve it by storing the login status in the cookie, and upon refresh i'm checking it, then decide what to do after, i usually check with the backend if a session exists for that user, and return his data.
↧