title: token based authentication in codeigniter rest server library
body: <p>I am try to build restful API in <code>codeigniter</code> using Phil Sturgeon's <a href="https://github.com/chriskacerguis/codeigniter-restserver" rel="noreferrer">rest server</a></p>
  
  <p>Problem is I can't figure out how to do token based authentication. I am building that API for mobile app and it is over HTTPS. At first user will authentication by logging in and then he will be able to use app functionalities.
  I want to implement in the way explained here: <a href="https://stackoverflow.com/questions/36273905/token-based-authentication-in-rest-apis">How token-based authentication works</a></p>
  
  <p>Questions:</p>
  
  <p>If I send token to server in request where should I check validity?<br>
  Does rest server library support token based authentication?<br>
  If it does which configurations do I need to do? or I need to implement my authentication methods?</p>
  
  <p>or there is better/simpler way for authentication instead of token based?</p>