Skip to content

Instantly share code, notes, and snippets.

elsif user_auth["provider"].eql?("facebook")
authentication = Authentication.find_by_provider_and_uid(user_auth['provider'], user_auth['uid'])
if authentication
@user = authentication.user
@user.notification_token = user_auth["user"]["notification_token"]
sign_in(:user, @user, store: false)