@ecency/wallets 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -211,7 +211,14 @@ function useGetExternalWalletBalanceQuery(currency, address) {
211
211
  function useSeedPhrase(username) {
212
212
  return reactQuery.useQuery({
213
213
  queryKey: ["ecency-wallets", "seed", username],
214
- queryFn: async () => bip39__default.default.generateMnemonic(128)
214
+ queryFn: async () => bip39__default.default.generateMnemonic(128),
215
+ // CRITICAL: Prevent seed regeneration - cache forever
216
+ // Once generated, the seed must NEVER change to ensure consistency between:
217
+ // 1. Displayed seed phrase
218
+ // 2. Downloaded seed file
219
+ // 3. Keys sent to API for account creation
220
+ staleTime: Infinity,
221
+ gcTime: Infinity
215
222
  });
216
223
  }
217
224
  var options = {