Skip to content
This repository was archived by the owner on Jun 25, 2026. It is now read-only.

Commit 94eecb4

Browse files
committed
add callback url for auth, fix typo
1 parent 5cef8d5 commit 94eecb4

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

web.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,20 @@ QueueConnector.connect(() => {
5252
}
5353

5454
if (!process.env.NYLAS_APP_SECRET) {
55-
throw "Before running this example, edit ./config.js and add your Nylas App ID and Secret.";
55+
throw "Before running this example, edit ./config.js and add your Nylas App ID and Secret. See config.js.template for an example.";
5656
}
5757

5858
global.publicURLRoot = JSON.parse(body).tunnels[1].public_url
5959
const webhookURI = `${global.publicURLRoot}/webhook`.replace('http:', 'https:');
60+
const callbackURI = `${global.publicURLRoot}/oauth/callback`.replace('http:', 'https:');
61+
6062

6163
// Start the program
6264
console.log(`Server running at http://${process.env.HOST}:${process.env.PORT}/`);
6365
console.log(`\nIf you haven't already, follow these steps:`);
6466
console.log(` - Visit https://developer.nylas.com and create a 'message.created' webhook with the URL: ${webhookURI}`);
65-
console.log(` - Start one or more sync workers by running 'npm start worker' in another console.`);
67+
console.log(` - Visit https://developer.nylas.com and create a callback with this url ${callbackURI}`);
68+
console.log(` - Start one or more sync workers by running 'npm run worker' in another console.`);
6669
console.log(` - Link an account to sync by visting http://${process.env.HOST}:${process.env.PORT}/!`);
6770
console.log(`\nNot receiving webhooks? Make sure it hasn't been disabled on the dashboard. If it has, delete it and create it again.`);
6871
app.listen(process.env.PORT);

0 commit comments

Comments
 (0)