lib/redd/auth_strategies/script.rb in redd-0.8.8 vs lib/redd/auth_strategies/script.rb in redd-0.9.0.pre.1
- old
+ new
@@ -16,9 +16,16 @@
# @return [Access] the access token object
def authenticate
request_access('password', username: @username, password: @password)
end
+ # Since the access isn't used for refreshing, the strategy is inherently
+ # refreshable.
+ # @return [true]
+ def refreshable?(_access)
+ true
+ end
+
# Refresh the authentication and return the refreshed access
# @return [Access] the new access
def refresh(_)
authenticate
end