Files
zeekay 9eb3d07b65 sign-in: one page to the code, the API warm, no asks a member never sees
Try Hanzo opens /signup directly instead of /chat bouncing a stranger
there, which cost a whole page load on a phone (13 s throttled).

/login no longer sends a new address to /signup: both pages send the
link at once and make the account once the code proves the address, so
the person stays on the page they chose.

/login, /signup and /auth/callback preconnect to api.hanzo.ai from the
head, so the methods read, the token exchange and the discovery a
provider press needs start on a warm connection.

A member at /login is marked before first paint (the app's BOOT under
data-member), the form stays off screen while the page moves them on,
and the panel asks IAM for no sign-in methods it would never draw.

The callback starts the bind and the standing read together instead of
one after the other.
2026-10-30 07:36:48 -07:00

8 lines
281 B
TypeScript

import { warm } from '@/lib/auth/warm'
/** The callback's token exchange and userinfo go to the API's origin: its connection opens as the page is parsed (lib/auth/warm). */
export default function Layout({ children }: { children: React.ReactNode }) {
warm()
return children
}