From fa96de66ed1794bb0262e6383ebda4248fd357f4 Mon Sep 17 00:00:00 2001 From: Alex Bea Date: Thu, 17 May 2018 11:48:58 -0400 Subject: [PATCH] docs: Specifies method for refreshing access token (#1177) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 117c5b1ccb9..88234b17e39 100644 --- a/README.md +++ b/README.md @@ -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: