Sha256: e4013b953a3de49cb9d8af931ed87679ace1c4e8089d785a502f7d981d560b24
Contents?: true
Size: 650 Bytes
Versions: 28
Compression:
Stored size: 650 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 strategy.options[:per_user_permissions] = strategy.session[:user_tokens] }
Version data entries
28 entries across 28 versions & 1 rubygems