From 4dc0e02729317cba925686b98059f5ac75f231dc Mon Sep 17 00:00:00 2001 From: Simon Schmell Date: Tue, 2 Apr 2024 19:41:41 +0200 Subject: [PATCH] fix: include memory cache on clear (#82) --- features/keychain/module/memoized-keychain.js | 1 + 1 file changed, 1 insertion(+) diff --git a/features/keychain/module/memoized-keychain.js b/features/keychain/module/memoized-keychain.js index b1f4b1f5..ad6bd974 100644 --- a/features/keychain/module/memoized-keychain.js +++ b/features/keychain/module/memoized-keychain.js @@ -53,6 +53,7 @@ class MemoizedKeychain extends Keychain { clear = async () => { await super.clear() + this.#publicKeys = Object.create(null) await this.#storage.delete(CACHE_KEY) } }