title: Authenticating Ember App with Rails (and Devise)
body: <p>Referring to: <a href="https://stackoverflow.com/questions/14652133/ember-authentication-best-practices">Ember authentication best practices?</a></p>
  
  <p>We have two separate apps: a Rails backend/API and a standalone Ember app. The Ember app will speak to the Rails API.</p>
  
  <p>I've found ember-auth (<a href="https://github.com/heartsentwined/ember-auth" rel="nofollow noreferrer">https://github.com/heartsentwined/ember-auth</a>), but I don't understand why I'm going to benefit from it.</p>
  
  <p>Here's what I want to do :
  - When logging in, Ember sends username and password to my <code>/accounts/login</code> endpoint.
  - If correct, Rails responds with the authentication token.
  - Ember will store the authentication token locally and pass it along with each subsequent requests. I do not want my tokens to expire so users can always close the browser, come back, and still be logged in.</p>
  
  <p>Is there any issues with my approach? What about security?</p>