diff --git a/libs/common/src/vault/services/default-cipher-encryption.service.ts b/libs/common/src/vault/services/default-cipher-encryption.service.ts index 582210261a0..b9b8d8855cf 100644 --- a/libs/common/src/vault/services/default-cipher-encryption.service.ts +++ b/libs/common/src/vault/services/default-cipher-encryption.service.ts @@ -235,10 +235,11 @@ export class DefaultCipherEncryptionService implements CipherEncryptionService { await using ref = await sdk.take(); - const ciphersClient = await ref.value.vault().await.ciphers(); - const result: DecryptCipherListResult = await ciphersClient.decrypt_list_with_failures( - ciphers.map((cipher) => cipher.toSdkCipher()), - ).transfer; + const result: DecryptCipherListResult = await ref.value + .vault() + .await.ciphers() + .await.decrypt_list_with_failures(ciphers.map((cipher) => cipher.toSdkCipher())).await + .transfer; const decryptedCiphers = result.successes; const failedCiphers: Cipher[] = result.failures diff --git a/libs/common/src/vault/services/totp.service.ts b/libs/common/src/vault/services/totp.service.ts index ca3e82ed8a6..e428189b994 100644 --- a/libs/common/src/vault/services/totp.service.ts +++ b/libs/common/src/vault/services/totp.service.ts @@ -40,9 +40,8 @@ export class TotpService implements TotpServiceAbstraction { return this.remoteSdkService.remoteClient$.pipe( switchMap(async (sdk) => { await using ref = await sdk!.take(); - const totp = await ref.value.vault().await.totp(); // Transfer the TOTP response - return totp.generate_totp(key).transfer; + return await ref.value.vault().await.totp().await.generate_totp(key).await.transfer; }), shareReplay({ bufferSize: 1, refCount: true }), );