diff --git a/lib/auth/refreshclient.js b/lib/auth/refreshclient.js index 844d2b8..d6bea66 100644 --- a/lib/auth/refreshclient.js +++ b/lib/auth/refreshclient.js @@ -49,8 +49,8 @@ function callback(c, err, res) { * @private */ UserRefreshClient.prototype.refreshToken_ = function(ignored_, opt_callback) { - UserRefreshClient.super_.prototype.refereshToken_.call(this._refreshToken, - opt_callback); + UserRefreshClient.super_.prototype.refreshToken_.call( + this, this._refreshToken, opt_callback); }; /** @@ -88,6 +88,7 @@ UserRefreshClient.prototype.fromJSON = function(json, opt_callback) { that.clientId_ = json.client_id; that.clientSecret_ = json.client_secret; that._refreshToken = json.refresh_token; + that.credentials.refresh_token = json.refresh_token; callback(opt_callback); };