Sha256: 32330307ec3948b7e7801772885a2db3c7aebf8cf098b29587c6e16922540a47
Contents?: true
Size: 573 Bytes
Versions: 21
Compression:
Stored size: 573 Bytes
Contents
# frozen_string_literal: true provider :shopify, ShopifyApp.configuration.api_key, ShopifyApp.configuration.secret, scope: ShopifyApp.configuration.scope, setup: lambda { |env| strategy = env['omniauth.strategy'] shopify_auth_params = strategy.session['shopify.omniauth_params']&.with_indifferent_access shop = if shopify_auth_params.present? "https://#{shopify_auth_params[:shop]}" else '' end strategy.options[:client_options][:site] = shop strategy.options[:old_client_secret] = ShopifyApp.configuration.old_secret }
Version data entries
21 entries across 21 versions & 1 rubygems