Skip to content

Commit 19e00eb

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
fix(quickbooks): bound initial token exchange
1 parent 311d32e commit 19e00eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/sim/lib/auth/auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ import {
8787
} from '@/lib/core/config/env-flags'
8888
import { PlatformEvents } from '@/lib/core/telemetry'
8989
import {
90+
DEFAULT_MAX_ERROR_BODY_BYTES,
9091
readResponseJsonWithLimit,
9192
readResponseTextWithLimit,
9293
} from '@/lib/core/utils/stream-limits'
@@ -113,7 +114,6 @@ import { clearDeadFlag } from '@/lib/oauth/terminal-errors'
113114
import { getCanonicalScopesForProvider } from '@/lib/oauth/utils'
114115
import { joinInstanceOrganization } from '@/lib/organizations/instance-org'
115116
import { captureServerEvent, getPostHogClient } from '@/lib/posthog/server'
116-
import { QUICKBOOKS_MAX_USER_INFO_BYTES } from '@/lib/quickbooks/client'
117117
import { disableUserResources } from '@/lib/workflows/lifecycle'
118118
import { SSO_TRUSTED_PROVIDERS } from '@/ee/sso/constants'
119119

@@ -3242,7 +3242,7 @@ export const auth = betterAuth({
32423242
}),
32433243
})
32443244
const data = await readResponseJsonWithLimit<Record<string, unknown>>(response, {
3245-
maxBytes: QUICKBOOKS_MAX_USER_INFO_BYTES,
3245+
maxBytes: DEFAULT_MAX_ERROR_BODY_BYTES,
32463246
label: 'QuickBooks OAuth token response',
32473247
})
32483248

0 commit comments

Comments
 (0)