From 599982f53c215809511a2806569f4ff9a7574289 Mon Sep 17 00:00:00 2001 From: Justina Date: Fri, 25 Sep 2026 17:48:12 +0100 Subject: [PATCH 1/2] small improvements --- app-client-starter-app/README.md | 11 ++--------- app-client-starter-app/server.js | 1 + 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/app-client-starter-app/README.md b/app-client-starter-app/README.md index 8f82bfe..a22b1bd 100644 --- a/app-client-starter-app/README.md +++ b/app-client-starter-app/README.md @@ -47,7 +47,7 @@ Use it as a starting point for your own integration. Clone it, configure it with | `BUFFER_CLIENT_ID` | Your app client ID from Buffer. | | `BUFFER_CLIENT_SECRET` | Required for a confidential client. Never expose it to the browser or commit it. | | `SESSION_SECRET` | At least 32 characters. Generate one with `openssl rand -hex 32`. Optional locally, required in production. | - | `REDIRECT_URI` | Optional locally and on your Vercel production deployment. If set, it must exactly match the redirect URI registered for your app client. Vercel preview deployments have no default callback, so login is disabled on them unless you register the preview's `/callback` URL and set `REDIRECT_URI` for that environment. | + | `REDIRECT_URI` | It must exactly match the redirect URI registered for your app client. | 4. Generate a self-signed certificate for local HTTPS: @@ -57,7 +57,7 @@ Use it as a starting point for your own integration. Clone it, configure it with Buffer doesn't accept `http://localhost` redirect URIs, so the dev server runs over HTTPS. If you skip this step, `npm start` generates the certificate on first run. -## Run it locally +5. Run the app locally: ```bash npm start @@ -65,13 +65,6 @@ npm start Open `https://localhost:3000` and accept the self-signed development certificate in your browser. -To run the tests and syntax checks: - -```bash -npm test -npm run lint -``` - ## Project structure | Path | What it holds | diff --git a/app-client-starter-app/server.js b/app-client-starter-app/server.js index 4343aff..252ab32 100644 --- a/app-client-starter-app/server.js +++ b/app-client-starter-app/server.js @@ -20,6 +20,7 @@ const platformTerminatesTls = IS_PRODUCTION function describe(scheme) { console.log(`\n Listening on ${scheme}://0.0.0.0:${PORT}`) + if (!platformTerminatesTls) console.log(` Open: ${scheme}://localhost:${PORT}`) console.log(` Redirect URI: ${REDIRECT_URI}`) console.log(` Client: ${CLIENT_ID} (${CLIENT_SECRET ? 'confidential' : 'public / PKCE only'})`) if (scheme === 'https') console.log('\n The certificate is self-signed — accept the browser warning once.') From 0b70552cf93865ea97892546f7dd3d660d7e07d5 Mon Sep 17 00:00:00 2001 From: Justina Date: Fri, 25 Sep 2026 17:52:34 +0100 Subject: [PATCH 2/2] update gitignore --- .DS_Store | Bin 6148 -> 0 bytes .gitignore | 1 + app-client-starter-app/.DS_Store | Bin 16388 -> 0 bytes 3 files changed, 1 insertion(+) delete mode 100644 .DS_Store create mode 100644 .gitignore delete mode 100644 app-client-starter-app/.DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index a8b77434b51ab92700542a05c6fcfee71fdbb161..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK!A`QlHD!WA&5CVuH zUCQRbUu1yRZW}xp;jalF*RKf)uA&EHv;o?t&hoQl3QP|YMn|M`E%d%&%z)Z)HaV~oO)p#j8#E63^3*LJdB4j>&Zzx zOjNC_J1nbW4Qlo2wA1P|?9TqdtYJ^P?H2mo_H1TVwsv+8PX_nVLoA;((E|UIN;VA6 z;TfH8z4N0xjw2c0V%>bq`B;q105iZ0tRe$uFRN5n@!|QInE__tM;V~~!A2!?4CWfu z)`5mTAF01YNP<4yB?xVUj=@|b_Miw|il|G4xnc-ij&a-MIR8OJd*3v)ve zYIcmbw0OzLGgxmtKy}S{wBm qm4xzgjqfGssG}Hj=_szFD#5r-4x(c)*N71m{t!?!uwe#%m4P?J@m8(? diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/app-client-starter-app/.DS_Store b/app-client-starter-app/.DS_Store deleted file mode 100644 index e048ec601be7f1ae55063d6f13310400515e8a2f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16388 zcmeGjTWl0n^q%Q!h7NRqA}w~pLLmrQ%2KLrd6?}>c^B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