From bb0bee7870943ec646ea4fc0f3f21da5e48c2f6b Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Thu, 16 Oct 2025 11:26:11 +0200 Subject: [PATCH] Refresh iOS autofill identities on every vault mutation (#520) --- apps/mobile-app/hooks/useVaultMutate.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/mobile-app/hooks/useVaultMutate.ts b/apps/mobile-app/hooks/useVaultMutate.ts index c1356cd42..407b16b10 100644 --- a/apps/mobile-app/hooks/useVaultMutate.ts +++ b/apps/mobile-app/hooks/useVaultMutate.ts @@ -116,6 +116,14 @@ export function useVaultMutate() : { throw new Error('Vault mutation did not complete successfully'); } + // Register credential identities after successful mutation + try { + await NativeVaultManager.registerCredentialIdentities(); + } catch (error) { + console.warn('VaultMutate: Failed to register credential identities:', error); + // Don't fail the mutation if credential registration fails + } + // Success options.onSuccess?.(); } catch (error) {