We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1d6c6a commit 90f0de0Copy full SHA for 90f0de0
lib/util/credentialStore.ts
@@ -43,10 +43,14 @@ export default class LncCredentialStore implements CredentialStore {
43
*/
44
constructor(namespace?: string, password?: string) {
45
if (namespace) this.namespace = namespace;
46
- if (password) this.password = password;
47
48
// load data stored in localStorage
49
this._load();
+
50
+ // set the password after loading the data, otherwise the data will be
51
+ // overwritten because the password setter checks for the existence of
52
+ // persisted data.
53
+ if (password) this.password = password;
54
}
55
56
//
0 commit comments