lib/bootic_client/strategies/authorized.rb in bootic_client-0.0.21 vs lib/bootic_client/strategies/authorized.rb in bootic_client-0.0.22
- old
+ new
@@ -2,13 +2,13 @@
module BooticClient
module Strategies
class Authorized < Oauth2Strategy
- protected
+ private
def validate!
- raise ArgumentError, "options MUST include access_token" unless options[:access_token]
+ raise ArgumentError, 'options MUST include access_token' unless options[:access_token]
end
def get_token
# The JWT grant must have an expiration date, in seconds since the epoch.
# For most cases a few seconds should be enough.