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

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

on_mount(name, params, session, socket)

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

put_flash!(socket, type, message)

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