On-demand, de-duplicated "make my cached token(s) fresh again" callback
for non-browser auth modes, invoked by api/BaseApi.ts's request
interceptors when a cached token is found to be stale at actual send
time — not just at the one point in time getTokens() originally checked
it. Set by AuthenticateOps.ts right after a successful login, alongside
scheduleAutoRefresh's timer (this is the same underlying mechanism,
just invocable on demand instead of only when the timer fires). Browser
login mode deliberately leaves this unset — cloud's primary token has no
refresh token, so there is no silent way to redo an interactive login;
going stale must surface a clear re-authentication error instead.
On-demand, de-duplicated "make my cached token(s) fresh again" callback for non-browser auth modes, invoked by
api/BaseApi.ts's request interceptors when a cached token is found to be stale at actual send time — not just at the one point in timegetTokens()originally checked it. Set byAuthenticateOps.tsright after a successful login, alongsidescheduleAutoRefresh's timer (this is the same underlying mechanism, just invocable on demand instead of only when the timer fires). Browser login mode deliberately leaves this unset — cloud's primary token has no refresh token, so there is no silent way to redo an interactive login; going stale must surface a clear re-authentication error instead.