code: function clearCache() {
      this._identityId = null;
      delete this.params.IdentityId;
  
      var poolId = this.params.IdentityPoolId;
      var loginId = this.params.LoginId || '';
      delete this.storage[this.localStorageKey.id + poolId + loginId];
      delete this.storage[this.localStorageKey.providers + poolId + loginId];
    }
docs: Clears the cached Cognito ID associated with the currently configured
  identity pool ID. Use this to manually invalidate your cache if
  the identity pool ID was deleted.