title: Angular SPA with multiple roles
body: <p>I'm building a SPA with Angular 1.5 where users have multiple roles [admin, 'see everything', 'edit specific stuff', basic user]. I spent whole day googling, stumbling across ton of different solutions, most seem to be outdated. My backend is Slim application, using token authentication.</p>
  
  <p>My questions: How do I implement displaying same ng-view differently for each role? Should backend return my role and token after I login? How do I check if user is logged in when he tries to change location? I assume just checking if token is stored on client wont be enough, since I have no way of knowing when if it's expired?</p>
  
  <p>I'm really new to token based authentication, and to Angular. I have lack of understanding how front end should be handled in my case, and I have no idea where to start. I'd appreciate any answer, suggestion, tip that'll help me understand what and how things should be done. Thank you.</p>