Use native login
Constraint-backed email and password fields feed one application-owned async handler.
SESSION · PERMISSION · RELEASE
Native login and layout-owned session state now compose with server-authorized reads, mutations, rejection recovery, and logout.
AUTH OWNERSHIP
Constraint-backed email and password fields feed one application-owned async handler.
The shared layout restores identity only after the server accepts the token.
Admin controls follow authenticated role state without pretending UI is security.
Protected reads reject missing tokens and mutations reject insufficient roles.
A 401 removes the stored token before replacement navigation returns to login.
Server logout and local state cleanup complete before the next document.
UPGRADE
npm install @kudzujs/core@^0.12.2