Releases: byjpr/plug_shopify_embedded_switch
Releases · byjpr/plug_shopify_embedded_switch
v0.1.0
Switches auth between URL Params and JWT, designed for Shopify App Bridge. Add the plug to any pipeline where you would like to do both URL param and JWT auth.
pipeline :demo do
plug PlugShopifyEmbeddedSwitch
end
This plug will set three keys in the private object which you can use in follow up plugs.
conn.private[:shopify_url_config]
Shop Origin URLconn.private[:shopify_jwt_config]
JWT Objectconn.private[:shop_origin_type]
will return either:jwt
or:url
Installation
def deps do
[
{:plug_shopify_embedded_switch, "~> 0.1.0"}
]
end