React hook returning the current login / account state, re-rendering on
login / logout.
user is null unless this frame holds auth:identity (see
SandboxUser); status alone is baseline and always available.
Off-host (plain vite dev) status stays 'unknown' forever — see
getAuthState for why "wait until it settles" hangs locally and how to
gate on it safely (signed-in check plus a timeout/fallback).
React hook returning the current login / account state, re-rendering on login / logout.
userisnullunless this frame holdsauth:identity(see SandboxUser);statusalone is baseline and always available.Off-host (plain
vite dev)statusstays'unknown'forever — see getAuthState for why "wait until it settles" hangs locally and how to gate on it safely (signed-in check plus a timeout/fallback).