Devise::Async.setup do |config|
  if Rails.env.test? || Rails.env.development?
    config.enabled = false
  else
    config.enabled = true
  end
  config.backend = :delayed_job
end
Devise::Async.setup do |config|
  if Rails.env.test? || Rails.env.development?
    config.enabled = false
  else
    config.enabled = true
  end
  config.backend = :sidekiq
end

Use sidekiq as devise async engine
Use sidekiq as devise async engine
