Function: useAuthReady()
useAuthReady():
boolean
true once the auth identity is final (anonymous guest, or authenticated with a
token in memory). Gate customer-account queries on it (enabled: useAuthReady())
so the first read after a reload waits for the cold-start refresh instead of
racing ahead as a guest. Combine with useAuthHydrated when you also want
to wait for localStorage rehydration.
Returns
boolean