FAQ
I have missing headers or issues with batch requests
Can I use this gem alongside standard Devise?
config/initializers/devise_token_auth.rb
DeviseTokenAuth.setup do |config|
config.enable_standard_devise_support = true
endconfig/routes.rb
Rails.application.routes.draw do
# standard devise routes available at /users
# NOTE: make sure this comes first!!!
devise_for :users
# token auth routes available at /api/v1/auth
namespace :api do
scope :v1 do
mount_devise_token_auth_for 'User', at: 'auth'
end
end
endAnother method for using this gem alongside standard Devise (updated May 2018)
controllers/api/v1/application_controller.rb
controllers/admin/application_controller.rb
controllers/application_controller.rb
config/initializers/devise_token_auth.rb
Why are the new routes included if this gem doesn't use them?
new routes included if this gem doesn't use them?I'm having trouble using this gem alongside ActiveAdmin...
How can I use this gem with Grape?
How can I use this gem with Solidus/Spree?
I already have a user, how can I add the new fields?
I want to add a new param for sign up and account update
Last updated