Module: ShopifyApp::SessionStorage

Extended by:
ActiveSupport::Concern
Included in:
ShopSessionStorage, ShopSessionStorageWithScopes, UserSessionStorage, UserSessionStorageWithScopes
Defined in:
lib/shopify_app/session/session_storage.rb

Instance Method Summary collapse

Instance Method Details

#with_shopify_session(&block) ⇒ Object



12
13
14
15
16
# File 'lib/shopify_app/session/session_storage.rb', line 12

def with_shopify_session(&block)
  ShopifyAPI::Auth::Session.temp(shop: shopify_domain, access_token: shopify_token) do |session|
    block.call(session)
  end
end