π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Improve more
Manav Rathife2f30a92cd5
diff --git a/web/packages/accounts/pages/credentials.tsx b/web/packages/accounts/pages/credentials.tsxindex 87ecf146bb..aa7696aeba 100644--- a/web/packages/accounts/pages/credentials.tsx+++ b/web/packages/accounts/pages/credentials.tsx@@ -276,15 +276,23 @@ const Page: React.FC<PageProps> = ({ appContext }) => {);}- if (passkeyVerificationURL && globalThis.electron) {+ if (passkeyVerificationURL) {// 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.+ // additional `globalThis.electron` check to show a spinner to prevent+ // all these details from being disorientingly shown for a fraction of a+ // second as the redirect happens on the web app.//// See: [Note: Passkey verification in the desktop app]+ if (!globalThis.electron) {+ return (+ <VerticallyCentered>+ <EnteSpinner />+ </VerticallyCentered>+ );+ }+return (<VerifyingPasskeyemail={user?.email}diff --git a/web/packages/accounts/pages/verify.tsx b/web/packages/accounts/pages/verify.tsxindex 5f794b7f40..0c7f8499a3 100644--- a/web/packages/accounts/pages/verify.tsx+++ b/web/packages/accounts/pages/verify.tsx@@ -174,15 +174,23 @@ const Page: React.FC<PageProps> = ({ appContext }) => {);}- if (passkeyVerificationURL && globalThis.electron) {+ if (passkeyVerificationURL) {// 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.+ // additional `globalThis.electron` check to show a spinner to prevent+ // all these details from being disorientingly shown for a fraction of a+ // second as the redirect happens on the web app.//// See: [Note: Passkey verification in the desktop app]+ if (!globalThis.electron) {+ return (+ <VerticallyCentered>+ <EnteSpinner />+ </VerticallyCentered>+ );+ }+return (<VerifyingPasskeyemail={email}