devise Devise & OmniAuth Multiple Providers Create Controller users/omniauth_callbacks_controller.rb

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
  include OmniConcern
  %w[facebook twitter gplus linkedin].each do |meth|
    define_method(meth) do
      create
    end
  end
end

Note: In the part “%w[facebook twitter gplus linkedin]”, you should list all the social accounts you will use.



Got any devise Question?