Hi all,
In my application, I login to an api using username/password and I get an access_token from the server and some user data such as user name.
I store that information in a service (user service) or I use $rootScope.current_user to hold user data (I'm trying both ways).
All seems to work great until I refresh the browser (F5) - all service data or $rootScope data is gone. Everything reinitialized.
I imagine this is by design because no information is persisted.
How should I store the user info to be used around the application and not go away on a browser refresh? I don't want to use cookies because it seems wrong to save user information such as name, some stats and other information I get from the server.
Thanks,
-- Chen