Skip to content

Commit

Permalink
docs: Specifies method for refreshing access token (#1177)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Bea authored and JustinBeckwith committed May 17, 2018
1 parent a9b0674 commit fa96de6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -197,7 +197,7 @@ oauth2client.setCredentials({
});
```

Once the client has a refresh token, access tokens will be acquired and refreshed automatically.
Once the client has a refresh token, access tokens will be acquired and refreshed automatically in the next call to the API. You can use the `oauth2Client.refreshAccessToken()` method for this purpose, returning the tokens in the response.

### Using API keys
You may need to send an API key with the request you are going to make. The following uses an API key to make a request to the Google+ API service to retrieve a person's profile given a userId:
Expand Down

0 comments on commit fa96de6

Please sign in to comment.