Skip to content

Commit d017eca

Browse files
author
Eric Koleda
authored
Merge pull request #84 from younes-abouelnagah/patch-1
Upon service reset, also clear the cached token
2 parents 08a8d9c + 3113108 commit d017eca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Service.gs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,11 @@ Service_.prototype.reset = function() {
362362
validate_({
363363
'Property store': this.propertyStore_
364364
});
365-
this.propertyStore_.deleteProperty(this.getPropertyKey_(this.serviceName_));
365+
var key = this.getPropertyKey_(this.serviceName_);
366+
this.propertyStore_.deleteProperty(key);
367+
if (this.cache_) {
368+
this.cache_.remove(key);
369+
}
366370
};
367371

368372
/**

0 commit comments

Comments
 (0)