Look up a profile and return whether it has been validated this session.
As a side-effect, fires a lazy profile_validate once per session for
any profile that has not yet been validated (and is not already being
validated). Subsequent renders see validatedAt populated and skip
the gate without the user ever clicking a "Validate" button.
The validation status (idle / validating / ok / error) lives in
useValidationStore so the sidebar dot + any future "needs auth" UI
can render a unified state.
Returns isValidated = false and profile = null when:
Look up a profile and return whether it has been validated this session.
As a side-effect, fires a lazy
profile_validateonce per session for any profile that has not yet been validated (and is not already being validated). Subsequent renders seevalidatedAtpopulated and skip the gate without the user ever clicking a "Validate" button.The validation status (idle / validating / ok / error) lives in
useValidationStoreso the sidebar dot + any future "needs auth" UI can render a unified state.Returns
isValidated = falseandprofile = nullwhen:profileIdis null / undefinedprofile.validatedAtis null / undefined