Sha256: 9dc9a6a4bc3a49dccdee0958d1b4a9747b2f45a3588c39be9864f11d1adddbd0

Contents?: true

Size: 371 Bytes

Versions: 1

Compression:

Stored size: 371 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.find_by_email('user@test.com')
    user.remember_me = true
    sign_in user
    render :text => ""
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
devise-3.2.3 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb