From f6fdd19833e8a225fae4eac4b11e1781514fb15f Mon Sep 17 00:00:00 2001 From: Frederik Rothenberger Date: Tue, 19 Mar 2024 10:59:13 +0100 Subject: [PATCH] debug --- src/frontend/src/flows/addDevice/manage/addFIDODevice.ts | 2 +- .../src/flows/addDevice/welcomeView/registerTentativeDevice.ts | 2 +- src/frontend/src/flows/recovery/setupRecovery.ts | 2 +- src/frontend/src/utils/multiWebAuthnIdentity.ts | 3 ++- src/frontend/src/utils/webAuthn.ts | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/frontend/src/flows/addDevice/manage/addFIDODevice.ts b/src/frontend/src/flows/addDevice/manage/addFIDODevice.ts index 69cf3bb2bf..f40439c53f 100644 --- a/src/frontend/src/flows/addDevice/manage/addFIDODevice.ts +++ b/src/frontend/src/flows/addDevice/manage/addFIDODevice.ts @@ -14,7 +14,7 @@ import { isWebAuthnCancel, isWebAuthnDuplicateDevice, } from "$src/utils/webAuthnErrorUtils"; -import { WebAuthnIdentity } from "@dfinity/identity"; +import { WebAuthnIdentity } from "$src/utils/WebAuthnIdentityCopy"; import { addDeviceSuccess } from "./addDeviceSuccess"; const displayFailedToAddDevice = (error: Error) => diff --git a/src/frontend/src/flows/addDevice/welcomeView/registerTentativeDevice.ts b/src/frontend/src/flows/addDevice/welcomeView/registerTentativeDevice.ts index f66140c3a4..254c557436 100644 --- a/src/frontend/src/flows/addDevice/welcomeView/registerTentativeDevice.ts +++ b/src/frontend/src/flows/addDevice/welcomeView/registerTentativeDevice.ts @@ -16,7 +16,7 @@ import { isWebAuthnCancel, isWebAuthnDuplicateDevice, } from "$src/utils/webAuthnErrorUtils"; -import { WebAuthnIdentity } from "@dfinity/identity"; +import { WebAuthnIdentity } from "$src/utils/WebAuthnIdentityCopy"; import { deviceRegistrationDisabledInfo } from "./deviceRegistrationModeDisabled"; import { showVerificationCode } from "./showVerificationCode"; diff --git a/src/frontend/src/flows/recovery/setupRecovery.ts b/src/frontend/src/flows/recovery/setupRecovery.ts index 038c3a3931..513cfa1d40 100644 --- a/src/frontend/src/flows/recovery/setupRecovery.ts +++ b/src/frontend/src/flows/recovery/setupRecovery.ts @@ -10,7 +10,7 @@ import { } from "$src/utils/iiConnection"; import { unreachable, unreachableLax } from "$src/utils/utils"; import { DerEncodedPublicKey, SignIdentity } from "@dfinity/agent"; -import { WebAuthnIdentity } from "@dfinity/identity"; +import { WebAuthnIdentity } from "$src/utils/WebAuthnIdentityCopy"; import { confirmSeedPhrase } from "./confirmSeedPhrase"; import { displaySeedPhrase } from "./displaySeedPhrase"; diff --git a/src/frontend/src/utils/multiWebAuthnIdentity.ts b/src/frontend/src/utils/multiWebAuthnIdentity.ts index 0ba8b0688f..479f4c3725 100644 --- a/src/frontend/src/utils/multiWebAuthnIdentity.ts +++ b/src/frontend/src/utils/multiWebAuthnIdentity.ts @@ -13,10 +13,11 @@ import { Signature, SignIdentity, } from "@dfinity/agent"; -import { DER_COSE_OID, unwrapDER, WebAuthnIdentity } from "@dfinity/identity"; +import { DER_COSE_OID, unwrapDER } from "@dfinity/identity"; import { isNullish } from "@dfinity/utils"; import borc from "borc"; import { bufferEqual } from "./iiConnection"; +import { WebAuthnIdentity } from "./WebAuthnIdentityCopy"; export type CredentialId = ArrayBuffer; export type CredentialData = { diff --git a/src/frontend/src/utils/webAuthn.ts b/src/frontend/src/utils/webAuthn.ts index c5a0a8e433..2dc1892014 100644 --- a/src/frontend/src/utils/webAuthn.ts +++ b/src/frontend/src/utils/webAuthn.ts @@ -5,7 +5,7 @@ import { DummyIdentity, IIWebAuthnIdentity, } from "$src/utils/iiConnection"; -import { WebAuthnIdentity } from "@dfinity/identity"; +import { WebAuthnIdentity } from "$src/utils/WebAuthnIdentityCopy"; import { isNullish } from "@dfinity/utils"; export const constructIdentity = async ({