Class: Challah::Authenticators::ApiKey

Inherits:
Object
  • Object
show all
Defined in:
lib/challah/authenticators/api_key.rb

Class Method Summary collapse

Class Method Details

.match?(user, provider, api_key) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/challah/authenticators/api_key.rb', line 4

def self.match?(user, provider, api_key)
  user.api_key ==  api_key.to_s.strip
end