Class: InfinumId::Resources::Finder

Inherits:
Object
  • Object
show all
Defined in:
app/services/infinum_id/resources/finder.rb

Class Method Summary collapse

Class Method Details

.from_omniauth(auth) ⇒ Object



4
5
6
# File 'app/services/infinum_id/resources/finder.rb', line 4

def self.from_omniauth(auth)
  InfinumId.resource_class.find_by(provider: auth.provider, uid: auth.uid)
end