QuickBooks Online UK connectivity

Authenticate against QuickBooks Online, store the refresh token securely, test the connection, read customers, and create a test customer.

OAuth flow

  1. Set the required `QBO_*` values in `.env.local`.
  2. Use the button below to start Intuit OAuth.
  3. The callback stores encrypted tokens in `.data/qbo-tokens.enc`.
  4. Run `npm run qbo:test` to verify connectivity.
Required env:
QBO_CLIENT_ID=
QBO_CLIENT_SECRET=
QBO_REDIRECT_URI=http://localhost:3000/api/qbo/oauth/callback
QBO_TOKEN_ENCRYPTION_KEY=

Test command:
npm run qbo:test

Create a test customer:
npm run qbo:test -- --create-test-customer