Sha256: 61170685eccbedcc395df2b4a77265735654e1bd51ee869513544860fd0e1559

Contents?: true

Size: 406 Bytes

Versions: 11

Compression:

Stored size: 406 Bytes

Contents

class HomeController < ApplicationController
  before_action :authorize

  def index;end

  private

  def authorize
    redirect_to login_path and return if session['tokens'].blank?

    session['tokens'] = Services::Hubspot::Authorization::Tokens::Refresh.new(tokens: session['tokens'], request: request).call
    Services::Hubspot::Authorization::Authorize.new(tokens: session['tokens']).call
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hubspot-api-client-9.0.0 sample-apps/search-result-paging-app/app/controllers/home_controller.rb
hubspot-api-client-8.0.1 sample-apps/search-result-paging-app/app/controllers/home_controller.rb
hubspot-api-client-8.0.0 sample-apps/search-result-paging-app/app/controllers/home_controller.rb
hubspot-api-client-7.3.0 sample-apps/search-result-paging-app/app/controllers/home_controller.rb
hubspot-api-client-7.2.0 sample-apps/search-result-paging-app/app/controllers/home_controller.rb
hubspot-api-client-7.1.1 sample-apps/search-result-paging-app/app/controllers/home_controller.rb
hubspot-api-client-7.1.0 sample-apps/search-result-paging-app/app/controllers/home_controller.rb
hubspot-api-client-7.0.0 sample-apps/search-result-paging-app/app/controllers/home_controller.rb
hubspot-api-client-6.0.0 sample-apps/search-result-paging-app/app/controllers/home_controller.rb
hubspot-api-client-5.0.0 sample-apps/search-result-paging-app/app/controllers/home_controller.rb
hubspot-api-client-4.0.0 sample-apps/search-result-paging-app/app/controllers/home_controller.rb