phoenix_live_view v0.3.0 Phoenix.LiveView.Flash View Source

Fetches Phoenix LiveView flash messages from cookie token.

Examples

plug Phoenix.LiveView.Flash

By default, the signing salt for the token is pulled from your endpoint's LiveView config, for example:

config :my_app, MyAppWeb.Endpoint,
  ...,
  live_view: [signing_salt: ...]

The :signing_salt option may also be passed directly to the plug.

Link to this section Summary

Functions

Fetches the live flash from a token passed via client cookies.

Link to this section Functions

Fetches the live flash from a token passed via client cookies.