title: Devise and Stateless tokens in Rails
body: <p>I got an API that I have developed using Rails 3 and Devise. I am using tokens (token_authenticatable) for authentication for requests made to the API from a client. I want to be able to switch between users in the requests just be replacing the token.</p>
  
  <p>I heard about a setting called :stateless_token (boolean) but I cannot figure out where to put this setting. Is there another way?</p>
  
  <p>If found the token_authenticatable here:</p>
  
  <p><a href="https://github.com/plataformatec/devise/blob/master/lib/devise/strategies/token_authenticatable.rb" rel="nofollow noreferrer">https://github.com/plataformatec/devise/blob/master/lib/devise/strategies/token_authenticatable.rb</a></p>
  
  <p>If found info about the stateless_token here:</p>
  
  <p><a href="http://rdoc.info/github/plataformatec/devise/master/Devise/Models/TokenAuthenticatable" rel="nofollow noreferrer">http://rdoc.info/github/plataformatec/devise/master/Devise/Models/TokenAuthenticatable</a></p>