π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Improve UX on web
Manav Rathiaf3f2280d63f
diff --git a/web/packages/accounts/pages/credentials.tsx b/web/packages/accounts/pages/credentials.tsxindex a7d1723c0e..87ecf146bb 100644--- a/web/packages/accounts/pages/credentials.tsx+++ b/web/packages/accounts/pages/credentials.tsx@@ -276,9 +276,12 @@ const Page: React.FC<PageProps> = ({ appContext }) => {);}- if (passkeyVerificationURL) {- // We reach this case only when running in the desktop app, because in- // the web app we already would've redirected to passkeyVerificationURL.+ if (passkeyVerificationURL && globalThis.electron) {+ // We only need when running in the desktop app, because in the web app+ // we just redirect to passkeyVerificationURL. However, still we add an+ // additional `globalThis.electron` check is to prevent this state from+ // being shown for a fraction of a second as the redirect happens on the+ // web app.//// See: [Note: Passkey verification in the desktop app]diff --git a/web/packages/accounts/pages/verify.tsx b/web/packages/accounts/pages/verify.tsxindex 53ea421eef..5f794b7f40 100644--- a/web/packages/accounts/pages/verify.tsx+++ b/web/packages/accounts/pages/verify.tsx@@ -6,6 +6,7 @@ import FormPaper from "@ente/shared/components/Form/FormPaper";import FormPaperFooter from "@ente/shared/components/Form/FormPaper/Footer";import FormPaperTitle from "@ente/shared/components/Form/FormPaper/Title";import LinkButton from "@ente/shared/components/LinkButton";+import { VerifyingPasskey } from "@ente/shared/components/LoginComponents";import SingleInputForm, {type SingleInputFormProps,} from "@ente/shared/components/SingleInputForm";@@ -34,7 +35,6 @@ import {import { configureSRP } from "../services/srp";import type { PageProps } from "../types/page";import type { SRPSetupAttributes } from "../types/srp";-import { VerifyingPasskey } from "@ente/shared/components/LoginComponents";const Page: React.FC<PageProps> = ({ appContext }) => {const { appName, logout } = appContext;@@ -174,9 +174,12 @@ const Page: React.FC<PageProps> = ({ appContext }) => {);}- if (passkeyVerificationURL) {- // We reach this case only when running in the desktop app, because in- // the web app we already would've redirected to passkeyVerificationURL.+ if (passkeyVerificationURL && globalThis.electron) {+ // We only need when running in the desktop app, because in the web app+ // we just redirect to passkeyVerificationURL. However, still we add an+ // additional `globalThis.electron` check is to prevent this state from+ // being shown for a fraction of a second as the redirect happens on the+ // web app.//// See: [Note: Passkey verification in the desktop app]