Class: ShopifyApp::Auth::PostAuthenticateTasks

Inherits:
Object
  • Object
show all
Defined in:
lib/shopify_app/auth/post_authenticate_tasks.rb

Class Method Summary collapse

Class Method Details

.perform(session) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/shopify_app/auth/post_authenticate_tasks.rb', line 7

def perform(session)
  ShopifyApp::Logger.debug("Performing post authenticate tasks")
  # Ensure we use the shop session to install webhooks
  session_for_shop = session.online? ? shop_session(session) : session

  install_webhooks(session_for_shop)

  perform_after_authenticate_job(session)
end