Class: UffizziCore::Google::CredentialService

Inherits:
Object
  • Object
show all
Defined in:
app/services/uffizzi_core/google/credential_service.rb

Class Method Summary collapse

Class Method Details

.credential_correct?(credential) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
8
9
# File 'app/services/uffizzi_core/google/credential_service.rb', line 5

def credential_correct?(credential)
  client(credential).authentificated?
rescue URI::InvalidURIError, Faraday::ConnectionFailed
  false
end