ConstCSRF token issuance and verification for state-changing requests.
Holds a token per session and exposes it for outgoing requests. Verification is constant-time by construction — a comparison that short-circuits on the first differing byte leaks the token's prefix through timing.
The
GeoLeaf.Securityfaçade — sanitisation, URL vetting and CSRF.⚠️ Every DOM write that carries data from a profile or a server must pass through here. The helpers exist precisely so
innerHTMLis never reached for directly. This directory is the XSS/CSRF surface of the kernel: bypassing them, or reaching forinnerHTMLwithout going through them, is the one thing that is never acceptable here.