Upon refresh (i.e. F5), everything on Angular scope is cleared and reloaded, so how can I restore the page where the user left off, including keeping him logged in/authenticated? There's a couple suggestions about how I can accomplish this, but most of the helpful resources I've found are several years old, so the purpose of this question is to get a more updated answer and see what more experienced Angular developers have done and feel is the proper way to do this.
Here's one suggesting a service for sessionStorage >two years ago. Here's a blog post using a service for ngCookies from three years ago.
Ultimately, I'd like to also persist the authentication (probably using JSON Web Token) so that the user stays logged in until their token expires, in case that affects the decision between sessionStorage / ngCookies / or any more modern solutions.