MailglassAdmin.Operator.Mount (MailglassAdmin v1.0.0)

Copy Markdown View Source

Internal on_mount authorization hook for the production operator surface.

This hook consumes the operator session whitelist from the router's operator session callback, calls the adopter-owned MailglassAdmin.Auth implementation, and assigns normalized auth context for later operator actions.

This module remains internal even though Phoenix wiring requires it to stay reachable from the router macro expansion.

Summary

Functions

on_mount(opts, params, session, socket)

@spec on_mount(map(), map(), map(), Phoenix.LiveView.Socket.t()) ::
  {:cont, Phoenix.LiveView.Socket.t()} | {:halt, Phoenix.LiveView.Socket.t()}