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