From 03bca10a37390b1734bf6e876bdd130dafd5d25d Mon Sep 17 00:00:00 2001 From: Andreas Coroiu Date: Tue, 28 Oct 2025 10:37:33 +0100 Subject: [PATCH] feat: hacky working totp --- libs/common/src/vault/services/totp.service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/common/src/vault/services/totp.service.ts b/libs/common/src/vault/services/totp.service.ts index 5e201e53040..180a10f40fe 100644 --- a/libs/common/src/vault/services/totp.service.ts +++ b/libs/common/src/vault/services/totp.service.ts @@ -40,8 +40,10 @@ export class TotpService implements TotpServiceAbstraction { return this.remoteSdkService.remoteClient$.pipe( switchMap(async (sdk) => { using ref = await sdk.take(); - console.log("TOTP", await ref.value.vault().await.totp()); - return ref.value.vault().await.totp().await.generate_totp(key); + // TODO: Bug, for some reason .await is not available after totp() + // return ref.value.vault().await.totp().await.generate_totp(key); + const totp = await ref.value.vault().await.totp(); + return totp.generate_totp(key); }), shareReplay({ bufferSize: 1, refCount: true }), );