Skip to content

Commit 0d68522

Browse files
author
Eric Koleda
committed
Expose the ability to manually refresh tokens, for APIs that provide refresh_tokens but don't set an expiry time (SalesForce for instance). Fixes googleworkspace#10.
1 parent 6ee8575 commit 0d68522

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Service.gs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,8 @@ Service_.prototype.parseToken_ = function(content) {
327327
/**
328328
* Refreshes a token that has expired. This is only possible if offline access was
329329
* requested when the token was authorized.
330-
* @private
331330
*/
332-
Service_.prototype.refresh_ = function() {
331+
Service_.prototype.refresh = function() {
333332
validate_({
334333
'Client ID': this.clientId_,
335334
'Client Secret': this.clientSecret_,

0 commit comments

Comments
 (0)