| Index: remoting/webapp/crd/js/oauth2.js
|
| diff --git a/remoting/webapp/crd/js/oauth2.js b/remoting/webapp/crd/js/oauth2.js
|
| index 52e12f8841480cf92bb92a8b2d7e274289e2e1cd..5d087c66207e1535793659e3c7ed32a821e9a20d 100644
|
| --- a/remoting/webapp/crd/js/oauth2.js
|
| +++ b/remoting/webapp/crd/js/oauth2.js
|
| @@ -82,15 +82,17 @@ remoting.OAuth2.prototype.isAuthenticated = function() {
|
| };
|
|
|
| /**
|
| - * Removes all storage, and effectively unauthenticates the user.
|
| + * Remove the cached auth token, if any.
|
| *
|
| + * @param {function():void} onDone Completion callback.
|
| * @return {void} Nothing.
|
| */
|
| -remoting.OAuth2.prototype.clear = function() {
|
| +remoting.OAuth2.prototype.removeCachedAuthToken = function(onDone) {
|
| window.localStorage.removeItem(this.KEY_EMAIL_);
|
| window.localStorage.removeItem(this.KEY_FULLNAME_);
|
| this.clearAccessToken_();
|
| this.clearRefreshToken_();
|
| + onDone();
|
| };
|
|
|
| /**
|
|
|