Shopifex v0.6.1 Shopifex.Plug.ShopifySession View Source

Link to this section Summary

Functions

Returns the token for the current session in a plug which has passed through the :shopify_session pipeline, or the Shopifex.Plug.ShopifySession plug.

Link to this section Functions

Link to this function

put_shop_in_session(conn, shop, locale \\ "en")

View Source

Specs

session_token(Plug.Conn.t()) :: Guardian.Token.token() | nil

Returns the token for the current session in a plug which has passed through the :shopify_session pipeline, or the Shopifex.Plug.ShopifySession plug.

Example

iex> session_token(conn)
"header.payload.signature"