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:
parent
c288a2bb84
commit
f90038d246
1 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue