Sha256: 77295bff6de7a8648398c32cd21312b521eef90d1135bd69fe8acd0aaa2bbe1b
Contents?: true
Size: 582 Bytes
Versions: 13
Compression:
Stored size: 582 Bytes
Contents
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 }
Version data entries
13 entries across 13 versions & 1 rubygems