crates/nornir-identity-web/src/lib.rs
//! **The consoles' shared identity web assets** (A34 M-7).
//!
//! The login page helpers were copied between Gunnar's console
//! (`gunnar-ui` `auth/login.html`, and its sign-up page) and Holger's
//! (`holger-ui` `assets/login.js`): `safeLocalPath`, `nextDestination`,
//! `inviteDone`, `ORPHAN_HINT` and the spent-invite words (A34-51). They are one
//! script here, which a console serves at [`login_js::PATH`] or splices into its
//! page at [`login_js::MARKER`]; the page keeps only its own words and wiring.
//!
//! What the page shows of the identity provider is the server's (A34-47): the
//! addresses come in the server's answer, the console builds none, so there is
//! no page logic here beyond these helpers.
//!
//! Every feature is off by default, so a build that names none links nothing.
#[cfg(feature = "login-js")]
pub mod login_js;