Module: Fizzy::TokenProvider
- Included in:
- StaticTokenProvider
- Defined in:
- lib/fizzy/token_provider.rb
Overview
Interface for providing access tokens. Implement this to provide custom token management.
Instance Method Summary collapse
-
#access_token ⇒ String
Returns the current access token.
-
#refresh ⇒ Boolean
Refreshes the access token.
-
#refreshable? ⇒ Boolean
Returns whether token refresh is supported.
Instance Method Details
#access_token ⇒ String
Returns the current access token.
26 27 28 |
# File 'lib/fizzy/token_provider.rb', line 26 def access_token raise NotImplementedError, "#{self.class} must implement #access_token" end |
#refresh ⇒ Boolean
Refreshes the access token.
32 33 34 |
# File 'lib/fizzy/token_provider.rb', line 32 def refresh false end |
#refreshable? ⇒ Boolean
Returns whether token refresh is supported.
38 39 40 |
# File 'lib/fizzy/token_provider.rb', line 38 def refreshable? false end |