mirror of
https://github.com/hanzo-apps/hanzo.ai.git
synced 2026-10-30 14:58:08 +00:00
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.
8 lines
281 B
TypeScript
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
|
|
}
|