title: Using the new Devise for authentication for a mobile app
body: <p>I am trying to implement user authentication using <code>Devise</code> for my <code>Rails</code>/<code>iOS</code> app. I am having trouble since I've mostly been a "<em>user</em>" of Devise and was using it for pure web apps so didn't need to bother so much with what goes on behind the scenes. Now that I have to build authentication for an API based app, it's entirely a different world. </p>
  
  <p>I've read <em>every single</em> tutorial on the web that deals with this topic (most of them are outdated due to the fact that <code>token_authenticatable</code> has been deprecated) but still having trouble understanding what I need to do.</p>
  
  <p>I also read the original <code>GitHub</code> gist talking about <a href="https://gist.github.com/josevalim/fb706b1e933ef01e4fb6" rel="noreferrer">this issue</a> and still don't understand what they are talking about.</p>
  
  <p>I'm sure there are people out there just like me who've been just a "<em>user</em>" of <code>Devise</code> so don't really know what goes on behind the scenes.</p>
  
  <p>Can anyone provide a concise solution to implementing an API based authentication system for a mobile app? I mean it can't be that complex, <code>Devise</code> used to be so awesome since all i needed to do was run <code>rails generate</code>, but this has been nightmare for me.</p>