Sha256: 81b6bb6c97f589f15dbcecadb9421f1c89c14ca2202c7f8211216328af341b88

Contents?: true

Size: 191 Bytes

Versions: 5

Compression:

Stored size: 191 Bytes

Contents

module InfinumId
  module Users
    class Finder
      def self.from_omniauth(auth)
        User.find_by(provider: auth.provider, uid: auth.uid) if defined?(User)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
infinum_id-1.3.1 app/services/infinum_id/users/finder.rb
infinum_id-1.3.0 app/services/infinum_id/users/finder.rb
infinum_id-1.2.0 app/services/infinum_id/users/finder.rb
infinum_id-1.1.0 app/services/infinum_id/users/finder.rb
infinum_id-1.0.0 app/services/infinum_id/users/finder.rb