{"version":"2.1.265","anchor":"sdk-query-supports-waiting-for-a-held-oauth-token-refresh-du","canonical_anchor":"sdk-query-supports-waiting-for-a-held-oauth-token-refresh-du","heading":"SDK query supports waiting for a held OAuth token refresh during shutdown","tier":"internal","area":"SDK","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.265\/e\/sdk-query-supports-waiting-for-a-held-oauth-token-refresh-du","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.265","markdown":"### SDK query supports waiting for a held OAuth token refresh during shutdown\n\nSDK query can now wait for an in-progress OAuth token refresh before shutting down\n\n**What**\n\nThe 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.\n\n**Why**\n\nThis 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.\n\n- Area: SDK\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 1\/5"}