From 4d2e4f0194686659360be2fc7b05452adcaa4c94 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Thu, 6 Jun 2024 12:41:50 +0530 Subject: [PATCH] Fix --- web/apps/photos/src/components/Sidebar/index.tsx | 4 ++-- web/docs/webauthn-passkeys.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/apps/photos/src/components/Sidebar/index.tsx b/web/apps/photos/src/components/Sidebar/index.tsx index 4a085b4a7f..37029eb8de 100644 --- a/web/apps/photos/src/components/Sidebar/index.tsx +++ b/web/apps/photos/src/components/Sidebar/index.tsx @@ -22,7 +22,7 @@ import { generateEncryptionKey, } from "@ente/shared/crypto/internal/libsodium"; import { useLocalState } from "@ente/shared/hooks/useLocalState"; -import { getAccountsURL } from "@ente/shared/network/api"; +import { accountsAppURL } from "@ente/shared/network/api"; import { LS_KEYS, getData, setData } from "@ente/shared/storage/localStorage"; import { THEME_COLOR } from "@ente/shared/themes/constants"; import { downloadAsFile } from "@ente/shared/utils"; @@ -510,7 +510,7 @@ const UtilitySection: React.FC = ({ closeSidebar }) => { const accountsToken = await getAccountsToken(); window.open( - `${getAccountsURL()}${ + `${accountsAppURL()}${ ACCOUNTS_PAGES.ACCOUNT_HANDOFF }?package=${clientPackageName["photos"]}&token=${accountsToken}`, ); diff --git a/web/docs/webauthn-passkeys.md b/web/docs/webauthn-passkeys.md index d521dc0ede..0156726029 100644 --- a/web/docs/webauthn-passkeys.md +++ b/web/docs/webauthn-passkeys.md @@ -342,7 +342,7 @@ credential authentication. We use Accounts as the central WebAuthn hub because credentials are locked to an FQDN. ```tsx -window.location.href = `${getAccountsURL()}/passkeys/flow?passkeySessionID=${passkeySessionID}&redirect=${ +window.location.href = `${accountsAppURL()}/passkeys/flow?passkeySessionID=${passkeySessionID}&redirect=${ window.location.origin }/passkeys/finish`; ```