Shopifex.Plug.EnsureScopes (Shopifex v2.2.1) View Source
This plug ensures that the shop which is currently loaded in the session
has all of the scopes which are defined under config :shopifex, scopes: "foo"
.
If the current shop does not have all the scopes, the conn is redirected to the Shopify OAuth update flow.
Simply adding a new scope to your :shopifex, scopes: "foo"
config will
trigger an OAuth update with your installations.