(authToken: string | undefined)
| 583 | * with the updated token. |
| 584 | */ |
| 585 | export function setApiClientAuthToken(authToken: string | undefined): void { |
| 586 | sharedAuthToken = authToken |
| 587 | // Note: We don't eagerly invalidate the client here. Instead, getApiClient() |
| 588 | // checks if the token has changed and recreates the client if needed. |
| 589 | // This avoids race conditions where the client is nullified but not yet recreated. |
| 590 | } |
| 591 | |
| 592 | /** |
| 593 | * Reset the shared client (mainly for testing) |
no outgoing calls
no test coverage detected