From ea15a441d97b2be3ed197bb27cacc222828f47bf Mon Sep 17 00:00:00 2001 From: David Nagli Date: Thu, 5 Oct 2023 15:37:08 -0400 Subject: [PATCH] Fix wrong .env key name in README If you use the key specified in the docs as-is, you get an error: Error: This function requires a clientId This is because the code reads the values: clientId: process.env.NYLAS_CLIENT_ID, clientSecret: process.env.NYLAS_CLIENT_SECRET, But the README calls it: CLIENT_ID=client_id... CLIENT_SECRET=client_secret... So I changed the README to reflect this :) --- packages/send-and-read-emails/backend/node/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/send-and-read-emails/backend/node/README.md b/packages/send-and-read-emails/backend/node/README.md index 6d64dfd..8026a66 100644 --- a/packages/send-and-read-emails/backend/node/README.md +++ b/packages/send-and-read-emails/backend/node/README.md @@ -19,8 +19,8 @@ Add these to a `.env` in this directory as in the example below. ```yaml # Nylas application keys - see https://developer.nylas.com/docs/developer-guide/authentication/authorizing-api-requests/#sdk-authentication -CLIENT_ID=client_id... -CLIENT_SECRET=client_secret... +NYLAS_CLIENT_ID=client_id... +NYLAS_CLIENT_SECRET=client_secret... ``` ### Install Node dependencies