Skip to content

Commit f0c42a8

Browse files
authored
Merge pull request #3 from bufferapp/app-improvements
Small improvements
2 parents e996001 + 0b70552 commit f0c42a8

5 files changed

Lines changed: 4 additions & 9 deletions

File tree

‎.DS_Store‎

-6 KB
Binary file not shown.

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

‎app-client-starter-app/.DS_Store‎

-16 KB
Binary file not shown.

‎app-client-starter-app/README.md‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Use it as a starting point for your own integration. Clone it, configure it with
4747
| `BUFFER_CLIENT_ID` | Your app client ID from Buffer. |
4848
| `BUFFER_CLIENT_SECRET` | Required for a confidential client. Never expose it to the browser or commit it. |
4949
| `SESSION_SECRET` | At least 32 characters. Generate one with `openssl rand -hex 32`. Optional locally, required in production. |
50-
| `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. |
50+
| `REDIRECT_URI` | It must exactly match the redirect URI registered for your app client. |
5151

5252
4. Generate a self-signed certificate for local HTTPS:
5353

@@ -57,21 +57,14 @@ Use it as a starting point for your own integration. Clone it, configure it with
5757

5858
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.
5959

60-
## Run it locally
60+
5. Run the app locally:
6161

6262
```bash
6363
npm start
6464
```
6565

6666
Open `https://localhost:3000` and accept the self-signed development certificate in your browser.
6767

68-
To run the tests and syntax checks:
69-
70-
```bash
71-
npm test
72-
npm run lint
73-
```
74-
7568
## Project structure
7669

7770
| Path | What it holds |

‎app-client-starter-app/server.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const platformTerminatesTls = IS_PRODUCTION
2020

2121
function describe(scheme) {
2222
console.log(`\n Listening on ${scheme}://0.0.0.0:${PORT}`)
23+
if (!platformTerminatesTls) console.log(` Open: ${scheme}://localhost:${PORT}`)
2324
console.log(` Redirect URI: ${REDIRECT_URI}`)
2425
console.log(` Client: ${CLIENT_ID} (${CLIENT_SECRET ? 'confidential' : 'public / PKCE only'})`)
2526
if (scheme === 'https') console.log('\n The certificate is self-signed — accept the browser warning once.')

0 commit comments

Comments
 (0)