Class: Secuconnect::Oauth2::Token
- Inherits:
-
Object
- Object
- Secuconnect::Oauth2::Token
- Defined in:
- lib/secuconnect/oauth2/token.rb
Class Method Summary collapse
Class Method Details
.find_or_create ⇒ Object
16 17 18 19 20 |
# File 'lib/secuconnect/oauth2/token.rb', line 16 def find_or_create Secuconnect.cache.fetch("secuconnect_auth_token", expires_in: token_expiration_time) do retrieve_token_from_service end end |