From 3e17bd8f6431a9bcd404bf5262950b2de7f58c61 Mon Sep 17 00:00:00 2001 From: IMRahulSaini Date: Sat, 11 May 2019 00:13:59 +0530 Subject: [PATCH] fix: Incorrect case README (#1706) Fixes: https://github.com/googleapis/google-api-nodejs-client/issues/1701 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ac7a8fd365b..57e38dc6bfd 100644 --- a/README.md +++ b/README.md @@ -183,7 +183,7 @@ With the credentials set on your OAuth2 client - you're ready to go! Access tokens expire. This library will automatically use a refresh token to obtain a new access token if it is about to expire. An easy way to make sure you always store the most recent tokens is to use the `tokens` event: ```js -oauth2client.on('tokens', (tokens) => { +oauth2Client.on('tokens', (tokens) => { if (tokens.refresh_token) { // store the refresh_token in my database! console.log(tokens.refresh_token); @@ -195,7 +195,7 @@ oauth2client.on('tokens', (tokens) => { To set the `refresh_token` at a later time, you can use the `setCredentials` method: ```js -oauth2client.setCredentials({ +oauth2Client.setCredentials({ refresh_token: `STORED_REFRESH_TOKEN` }); ```