We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27995bc commit d41a9a5Copy full SHA for d41a9a5
gusto_embedded/src/CompanyAuthenticatedClient.ts
@@ -28,7 +28,7 @@ export function CompanyAuthenticatedClient({
28
const authUrl = constructAuthUrl(options);
29
const tokenStore = new InMemoryTokenStore();
30
31
- const httpClientWithTokenRefresh = new HTTPClient();
+ const httpClientWithTokenRefresh = options.httpClient ?? new HTTPClient();
32
33
httpClientWithTokenRefresh.addHook("response", async (res) => {
34
if (res.status === 401) {
0 commit comments