phoenix_live_view v0.7.0 Phoenix.LiveView.Flash View Source
Fetches Phoenix LiveView flash messages from cookie token.
This Plug can be used in place of Phoenix' fetch_flash
.
Examples
plug Phoenix.LiveView.Flash
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: ...]