Open sentry-io[bot] opened 4 months ago
Hi @gantunesr @mikesposito @Gudahtt do we have an idea when this situation can happen? => We try to save an item in the vault but the item is already included in the vault.
The error should be thrown by
const backupResult = await setInternetCredentials(
VAULT_BACKUP_KEY,
VAULT_BACKUP_KEY,
keyringState.vault,
options,
);
setInternetCredentials
comes from the react-native-keychain
package, and apparently, the package throws that error when the credentials we are trying to save already exist in the OS keychain
So with "keychain" the error is not referring to our vault in this case, but the vault backup fails for some reason
But this does not make much sense, since the credentials at slot VAULT_BACKUP_KEY
should be expected to exist, since we update the value stored each time the user vault is updated. So I'm still unsure about which case would make react-native-keychain
complain, instead of just overwriting the credentials
This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 7 days. Thank you for your contributions.
Sentry Issue: METAMASK-MOBILE-2BAS