phoenix_live_view v0.5.2 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.