title: Multiple User models with shared sign in route with devise_token_auth
body: <p>I have two different user models (User and SuperUser) and i'm using devise_token_auth for handling my sign_in (and the other stuff devise comes with). The two models can't be modelled through STI (as in having a single User model and different 'types') because i'm using MultiTenant on User, but not on SuperUser(this user can navigate all tenants).</p>
  <p>My goal is to have both, User and SuperUser, share the same sign in route(and reset_password, omniauth, etc), also, there can't be a User and a SuperUser that share an email, so no problem there. I'm struggling to achieve this. In my 'routes.rb' i have:</p>
  <pre><code>mount_devise_token_auth_for 'User', at: 'auth', :controllers =&gt; {
    ## my controllers
  }
  </code></pre>
  <p>and i've tried stuff like</p>
  <pre><code>mount_devise_token_auth_for 'User', 'SuperUser', at: 'auth', :controllers =&gt; {
    ## my controllers
  }
  </code></pre>
  <p>But of course, this does not work.</p>
  <p>Anyone have any idea on how can i do this? If it is truly &quot;impossible&quot;(nothing is, i hope), i will have to just shrug it off and have two different paths, but i wish to not have to do that.</p>
  <p>Thank you for any help or advice you can give me!</p>