ExShopifyApp.Plugs.AssignShop (ex_shopify_app v0.1.1)

A plug to assign a shop identified by a token or header.

Options

  • :get_shop_by_domain - A function that fetches the Shop resource by domain.
  • :type - Can be :token or :header. Defaults to :token.

Example

plug ExShopifyApp.Pipeline.Shop,

get_shop_by_domain: &MyApp.get_shop_by_domain/1

Summary

Functions

call(conn, opts)

init(opts)