You should use something like:

    User.find_by(provider: @auth['provider'], uid: @auth['uid'])

It's more [Rails 4 ish ](http://edgeguides.rubyonrails.org/4_0_release_notes.html)