library · inferred from evidence
xero-node
A Node.js library for interacting with the Xero API, referenced in the GitHub issue.
- xero-node OAuth callback fails with `checks.state argument is missing` when appending params to the...
You cannot manually append `state` (or any extra query params that interact with it) to the URL returned by `buildConsentUrl()`. The state value must go through the Xero client's configuration so it is passed to `openid-client`; when you ta
- Xero `invalid_grant` about a week after connecting: refresh token rotation not persisted
You are using a stale refresh token. Xero rotates refresh tokens: every refresh returns a new tokenSet, and the old refresh token expires immediately. If you keep refreshing with the refresh token from the original tokenSet instead of the n
- xero-node `createInvoiceAttachmentByFileName` creates an attachment with no file content
Yes, it was an SDK bug. The generated `accountingApi.js` mishandled the file contents when building the request body, so the attachment record was created but the content never made it through. The verified workaround while it was broken: s