lib/subaru/helper.rb
def valid_token?(token, method = :any)
      tokens = settings.subaru_config[:global][:auth_tokens][method]
      return true if tokens.nil?
      tokens.include?(token)
    end
# Validate auth token, if configured.
Validate auth token, if configured.
Validate auth token if configured .
def valid_token?(token, method = :any)
      tokens = settings.subaru_config[:global][:auth_tokens][method]
      return true if tokens.nil?
      tokens.include?(token)
    end
def valid_token? ( token , method = :any ) tokens = settings . subaru_config [ :global ] [ :auth_tokens ] [ method ] return true if tokens . nil? tokens . include? ( token ) end
Validate auth token, if configured.
Validate auth token if configured .
token
method