Under the hood
SDK query can now wait for an in-progress OAuth token refresh before shutting down
What
The SDK's query process gains a waitForHeldOAuthRefresh step. When shutting down, it now checks whether an OAuth token refresh is currently pending; if so, it extends the shutdown safety timer and waits for the refresh to finish before letting shutdown proceed.
Why
This prevents the process from being killed in the middle of refreshing its authentication token, which could otherwise leave the session in a broken authentication state.