Sha256: f8a668236876af4f66041339a647487477c248646fa11be0a7c5416d0a0d900f

Contents?: true

Size: 1.28 KB

Versions: 2

Compression:

Stored size: 1.28 KB

Contents

unless defined? Rails::Generators
  ShopifyApp.configure do |config|
    config.application_name = "<%= @application_name %>"
    config.api_key = ENV.fetch('SHOPIFY_API_KEY', '').presence || raise('Missing SHOPIFY_API_KEY. See https://github.com/Shopify/shopify_app#api-keys')
    config.secret = ENV.fetch('SHOPIFY_API_SECRET', '').presence || raise('Missing SHOPIFY_API_SECRET. See https://github.com/Shopify/shopify_app#api-keys')
    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.allow_jwt_authentication = <%= !with_cookie_authentication? %>
    config.allow_cookie_authentication = <%= with_cookie_authentication? %>
  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

2 entries across 2 versions & 1 rubygems

Version Path
shopify_app-17.0.2 lib/generators/shopify_app/install/templates/shopify_app.rb.tt
shopify_app-17.0.1 lib/generators/shopify_app/install/templates/shopify_app.rb.tt