title: Which would be safe to store authentication token, rootScope or sessionStorage in AngularJS
body: <p>I am developing one application based on AngularJS and that will interact with one RESTful service. After authentication from service that returns one token. I need to store token and intercept in every request. I want to understand which would be better to store the token, either rootScope or sessionStorage?</p>