diff --git a/lib/util/credentialStore.ts b/lib/util/credentialStore.ts index 77e107b..02e1e45 100644 --- a/lib/util/credentialStore.ts +++ b/lib/util/credentialStore.ts @@ -178,15 +178,17 @@ export default class LncCredentialStore implements CredentialStore { if (!memoryOnly) { const key = `${STORAGE_KEY}:${this.namespace}`; localStorage.removeItem(key); + + this.persisted = { + salt: '', + cipher: '', + serverHost: this.persisted.serverHost, + localKey: '', + remoteKey: '', + pairingPhrase: '' + }; } - this.persisted = { - salt: '', - cipher: '', - serverHost: this.persisted.serverHost, - localKey: '', - remoteKey: '', - pairingPhrase: '' - }; + this._localKey = ''; this._remoteKey = ''; this._pairingPhrase = '';