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