Skip to content

Commit 1e3ae6f

Browse files
committed
fix(docs): make the Wealthbox rejection copy true for every failure path
`invalidCredentialsHelp` replaces the generic message for every `invalid_credentials` rejection, and the Wealthbox validator raises that code on three paths: a 402 expired trial, a 401/403 where both header styles fail, and a 401/403 where Bearer fails but the ACCESS_TOKEN probe succeeds. The copy described only the third, so two of the three told the user their token was valid and pointed at remediation that could not help. Now leads with what is checkable in all three cases and makes the Bearer note conditional on the one signal that distinguishes it — the token working elsewhere.
1 parent 3180179 commit 1e3ae6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/lib/credentials/token-service-accounts/descriptors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ export const TOKEN_SERVICE_ACCOUNT_DESCRIPTORS: Record<
344344
helpText:
345345
'Trial accounts cannot use the Wealthbox API; contact Wealthbox support if API Access is missing from your Settings.',
346346
invalidCredentialsHelp:
347-
"Wealthbox rejected this token. Sim's Wealthbox tools authenticate with a Bearer header, so a token Wealthbox only accepts over its ACCESS_TOKEN header is refused here even though it is valid. Check that the token is active in Wealthbox under Settings, and that the account is not on an expired trial.",
347+
'Wealthbox rejected this token. Check that it is still active under API Access in your Wealthbox settings, and that the account is not on an expired trial. If the same token works elsewhere, note that Sim authenticates with a Bearer header — a token Wealthbox accepts only over its ACCESS_TOKEN header is refused here.',
348348
},
349349
[PIPEDRIVE_SERVICE_ACCOUNT_PROVIDER_ID]: {
350350
providerId: PIPEDRIVE_SERVICE_ACCOUNT_PROVIDER_ID,

0 commit comments

Comments
 (0)