View Source AshAuthentication.Phoenix.Utils.Flash (ash_authentication_phoenix v2.0.0)

Utility functions for sending and receiving flash messages.

Summary

Functions

Attach a hook to receive flash messages sent from components, for rendering in the top-level liveview.

Send flash messages from components, to be rendered in their parent liveview.

Functions

Link to this function

on_mount(name, params, session, socket)

View Source

Attach a hook to receive flash messages sent from components, for rendering in the top-level liveview.

Link to this function

put_flash!(socket, type, message)

View Source

Send flash messages from components, to be rendered in their parent liveview.