googleworkspace / apps-script-oauth2

An OAuth2 library for Google Apps Script.
https://developers.google.com/apps-script/
Apache License 2.0
1.56k stars 429 forks source link

service.reset() does not remove access tokens from storage #336

Open alexminer88 opened 2 years ago

alexminer88 commented 2 years ago

service.reset() did not remove access tokens, but when I perform: service.getStorage().setValue(null, null); this removes the token. This was under the condition that a user property store was being used.

I see that the token is being stored under the key null: Service_.prototype.saveToken__ = function(token) { this.getStorage().setValue(null, token); };

Testing yields that the token is still present no matter what unless we clear the value directly with the service storage.