qbo_auth: вебхук cloudevents+json (был 415), страница тестов по секретной ссылке, allowedRealmIds; требования Intuit
All checks were successful
ci / test (push) Successful in 36s
ci / deploy (push) Successful in 2m37s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-23 09:28:24 +03:00
parent e90b9f352d
commit 9a1a2a8a6b
9 changed files with 85 additions and 28 deletions

View File

@@ -21,6 +21,7 @@ const auth = new QboAuth({
redirectUri: s.redirectUri,
scope: s.scope,
keepAliveHours: s.keepAliveHours,
allowedRealmIds: s.allowedRealmIds,
endpoints: discoveryEndpoints(s.environment, async (url) => (await fetch(url, { headers: { Accept: "application/json" } })).json(), Date.now, (msg, extra) => log.warn(extra ?? {}, msg)),
notify: async (text) => {
await itNotify(common, text).catch(() => false);