Skip to content

Commit 3e17bd8

Browse files
CodeByRahulSainiJustinBeckwith
authored andcommitted
fix: Incorrect case README (#1706)
Fixes: #1701
1 parent 3a4ff77 commit 3e17bd8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ With the credentials set on your OAuth2 client - you're ready to go!
183183
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:
184184

185185
```js
186-
oauth2client.on('tokens', (tokens) => {
186+
oauth2Client.on('tokens', (tokens) => {
187187
if (tokens.refresh_token) {
188188
// store the refresh_token in my database!
189189
console.log(tokens.refresh_token);
@@ -195,7 +195,7 @@ oauth2client.on('tokens', (tokens) => {
195195
To set the `refresh_token` at a later time, you can use the `setCredentials` method:
196196

197197
```js
198-
oauth2client.setCredentials({
198+
oauth2Client.setCredentials({
199199
refresh_token: `STORED_REFRESH_TOKEN`
200200
});
201201
```

0 commit comments

Comments
 (0)