refreshToken function

Refresh Access Token

Refresh Access Token

refreshToken returns a new valid access token. The access token deprecates after one hour and has to updated with the refresh token. Usually you need not to run refreshToken() explicitly since the whole authentication process is managed by doAuth.

refreshToken(google_auth)

Arguments

  • google_auth: list of credentials and access token

Returns

New access token with corresponding time stamp.