Sha256: f9384a8f54f8022beaa8fa6c9d1a1a7bd3e236c3cd1813616874e2049d7f01d7

Contents?: true

Size: 380 Bytes

Versions: 16

Compression:

Stored size: 380 Bytes

Contents

class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
  def facebook
    data = env["omniauth.auth"]
    session["devise.facebook_data"] = data["extra"]["user_hash"]
    render json: data
  end

  def sign_in_facebook
    user = User.to_adapter.find_first(email: 'user@test.com')
    user.remember_me = true
    sign_in user
    render text: ""
  end
end

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
devise-3.5.10 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.5.9 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.5.8 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.5.7 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.5.6 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.5.5 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.5.4 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.5.3 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/devise-3.5.2/test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.5.2 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.5.1 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
deviseOne-1.0.0 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.4.1 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.4.0 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
brainsome_devise-3.3.0 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.3.0 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb