Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Backfill accounts release into main (#1637)

Manav Rathif90038d246f7
diff --git a/apps/accounts/src/pages/passkeys/flow/index.tsx b/apps/accounts/src/pages/passkeys/flow/index.tsx
index 01256d7401..8134e17468 100644
--- a/apps/accounts/src/pages/passkeys/flow/index.tsx
+++ b/apps/accounts/src/pages/passkeys/flow/index.tsx
@@ -38,8 +38,10 @@ const PasskeysFlow = () => {
if (process.env.NEXT_PUBLIC_DISABLE_REDIRECT_CHECK !== 'true') {
if (
redirect !== '' &&
- (redirectURL.host.endsWith('.ente.io') ||
- redirectURL.host.endsWith('bada-frame.pages.dev')) &&
+ !(
+ redirectURL.host.endsWith('.ente.io') ||
+ redirectURL.host.endsWith('bada-frame.pages.dev')
+ ) &&
redirectURL.protocol !== 'ente:' &&
redirectURL.protocol !== 'enteauth:'
) {
@@ -87,7 +89,7 @@ const PasskeysFlow = () => {
try {
credential = await getCredential(beginData.options.publicKey);
} catch (e) {
- logError("Couldn't get credential", e);
+ logError(e, "Couldn't get credential");
continue;
} finally {
tries++;
@@ -163,7 +165,6 @@ const PasskeysFlow = () => {
const credential = await navigator.credentials.get(
publicKeyCredentialCreationOptions
);
-
return credential;
};