@@ -87,6 +87,7 @@ import {
8787} from '@/lib/core/config/env-flags'
8888import { PlatformEvents } from '@/lib/core/telemetry'
8989import {
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'
113114import { getCanonicalScopesForProvider } from '@/lib/oauth/utils'
114115import { joinInstanceOrganization } from '@/lib/organizations/instance-org'
115116import { captureServerEvent , getPostHogClient } from '@/lib/posthog/server'
116- import { QUICKBOOKS_MAX_USER_INFO_BYTES } from '@/lib/quickbooks/client'
117117import { disableUserResources } from '@/lib/workflows/lifecycle'
118118import { 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