diff --git a/web/packages/accounts/services/passkey.ts b/web/packages/accounts/services/passkey.ts index c13fe11c7c..c6f144b786 100644 --- a/web/packages/accounts/services/passkey.ts +++ b/web/packages/accounts/services/passkey.ts @@ -94,8 +94,6 @@ export const openPasskeyVerificationURL = ({ /** * Open a new window showing a page on the Ente accounts app where the user can * see and their manage their passkeys. - * - * @param appName The {@link AppName} of the app which is calling this function. */ export const openAccountsManagePasskeysPage = async () => { // Check if the user has passkey recovery enabled diff --git a/web/packages/next/types/app.ts b/web/packages/next/app.ts similarity index 93% rename from web/packages/next/types/app.ts rename to web/packages/next/app.ts index a66edbc8ef..6220e691a9 100644 --- a/web/packages/next/types/app.ts +++ b/web/packages/next/app.ts @@ -47,12 +47,6 @@ export const staticAppTitle = { photos: "Ente Photos", }[appName]; -export const _clientPackageName: Record = { - accounts: "io.ente.accounts.web", - auth: "io.ente.auth.web", - photos: "io.ente.photos.web", -}; - /** Client package name for the Photos desktop app */ export const clientPackageNamePhotosDesktop = "io.ente.photos.desktop"; @@ -71,7 +65,11 @@ export const clientPackageName = (() => { throw new Error(`Unsupported desktop appName ${appName}`); return clientPackageNamePhotosDesktop; } - return _clientPackageName[appName]; + return { + accounts: "io.ente.accounts.web", + auth: "io.ente.auth.web", + photos: "io.ente.photos.web", + }[appName]; })(); /** diff --git a/web/packages/next/http.ts b/web/packages/next/http.ts index 5fb8e3fe68..fca7bbfc6b 100644 --- a/web/packages/next/http.ts +++ b/web/packages/next/http.ts @@ -1,5 +1,5 @@ +import { clientPackageName } from "./app"; import { ensureAuthToken } from "./local-user"; -import { clientPackageName } from "./types/app"; /** * Return headers that should be passed alongwith (almost) all authenticated diff --git a/web/packages/next/log-web.ts b/web/packages/next/log-web.ts index 54e2dd4b78..fb8364eac0 100644 --- a/web/packages/next/log-web.ts +++ b/web/packages/next/log-web.ts @@ -1,6 +1,6 @@ import { isDevBuild } from "@/next/env"; import log from "@/next/log"; -import { appName, appNames } from "./types/app"; +import { appName, appNames } from "./app"; /** * Log a standard startup banner.