Backfill accounts release into main (#1637)

Co-authored-by: Neeraj Gupta <neeraj.gupta983@gmail.com>
Co-authored-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
This commit is contained in:
Manav Rathi 2024-02-20 10:15:03 +05:30 committed by GitHub
parent c288a2bb84
commit f90038d246
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
};