Sha256: 9b8d17db0c63132c5dd4b6c9bcce878aca64b3ef3a634326411d9b9e722377f1

Contents?: true

Size: 1.35 KB

Versions: 20

Compression:

Stored size: 1.35 KB

Contents

ShopifyApp.configure do |config|
  config.application_name = "<%= @application_name %>"
  config.old_secret = "<%= @old_secret %>"
  config.scope = "<%= @scope %>" # Consult this page for more scope options:
                                  # https://help.shopify.com/en/api/getting-started/authentication/oauth/scopes
  config.embedded_app = <%= embedded_app? %>
  config.after_authenticate_job = false
  config.api_version = "<%= @api_version %>"
  config.shop_session_repository = 'Shop'

  config.reauth_on_access_scope_changes = true

  config.allow_jwt_authentication = <%= !with_cookie_authentication? %>
  config.allow_cookie_authentication = <%= with_cookie_authentication? %>

  config.api_key = ENV.fetch('SHOPIFY_API_KEY', '').presence
  config.secret = ENV.fetch('SHOPIFY_API_SECRET', '').presence
  if defined? Rails::Server
    raise('Missing SHOPIFY_API_KEY. See https://github.com/Shopify/shopify_app#requirements') unless config.api_key
    raise('Missing SHOPIFY_API_SECRET. See https://github.com/Shopify/shopify_app#requirements') unless config.secret
  end
end

# ShopifyApp::Utils.fetch_known_api_versions                        # Uncomment to fetch known api versions from shopify servers on boot
# ShopifyAPI::ApiVersion.version_lookup_mode = :raise_on_unknown    # Uncomment to raise an error if attempting to use an api version that was not previously known

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
ruby_shopify_app-1.3.3 lib/generators/shopify_app/install/templates/shopify_app.rb.tt
ruby_shopify_app-1.3.2 lib/generators/shopify_app/install/templates/shopify_app.rb.tt
ruby_shopify_app-1.3.1 lib/generators/shopify_app/install/templates/shopify_app.rb.tt
ruby_shopify_app-1.3.0 lib/generators/shopify_app/install/templates/shopify_app.rb.tt
ruby_shopify_app-1.2.0 lib/generators/shopify_app/install/templates/shopify_app.rb.tt
ruby_shopify_app-1.1.0 lib/generators/shopify_app/install/templates/shopify_app.rb.tt
ruby_shopify_app-1.0.0 lib/generators/shopify_app/install/templates/shopify_app.rb.tt
shopify_app-18.1.3 lib/generators/shopify_app/install/templates/shopify_app.rb.tt
shopify_app-18.1.2 lib/generators/shopify_app/install/templates/shopify_app.rb.tt
shopify_app-18.1.1 lib/generators/shopify_app/install/templates/shopify_app.rb.tt
shopify_app-18.1.0 lib/generators/shopify_app/install/templates/shopify_app.rb.tt
shopify_app-18.0.4 lib/generators/shopify_app/install/templates/shopify_app.rb.tt
shopify_app-18.0.3 lib/generators/shopify_app/install/templates/shopify_app.rb.tt
shopify_app-18.0.2 lib/generators/shopify_app/install/templates/shopify_app.rb.tt
shopify_app-18.0.1 lib/generators/shopify_app/install/templates/shopify_app.rb.tt
shopify_app-18.0.0 lib/generators/shopify_app/install/templates/shopify_app.rb.tt
shopify_app-17.2.1 lib/generators/shopify_app/install/templates/shopify_app.rb.tt
shopify_app-17.2.0 lib/generators/shopify_app/install/templates/shopify_app.rb.tt
shopify_app-17.1.1 lib/generators/shopify_app/install/templates/shopify_app.rb.tt
shopify_app-17.1.0 lib/generators/shopify_app/install/templates/shopify_app.rb.tt