Authenticates a Shopify request and builds the Shopifex session.
Two modes, chosen with the :mode plug option:
:webhook(default) — a webhookPOST. Thex-shopify-hmac-sha256header is verified against the HMAC of the raw request body (seeShopifex.Plug.valid_webhook_hmac?/1). The shop is resolved from thex-shopify-shop-domainheader or the verified body — never from a query/body param a caller can choose, and a query-stringhmacis ignored.:admin_link— an admin-link / bulk-action-linkGET, signed like an app load. The queryhmacis verified and, when atimestampis present, its freshness is checked. The shop is resolved from the signed queryshopparam.
The :shopify_webhook and :shopify_admin_link pipelines set the mode.