Devise Token Auth

Sign in as Another User Using Devise Token Auth in Rails Api Application

Guide on how to sign in as another user if you are admin using devise token auth in rails API application

Sanketkumar Karve

3 minute read

In normal Rails application, Sign in as another user if you are an admin comes in very handy when using devise and active admin. But was unable to find any content for Rails API app using devise token auth gem. As suggest by devise token auth, it uses devise gem for authentication so I looked into devise token auth gem for bypass_sign_in method.