From 28ba02a2ef277a51a032df3f2fc922d7ea25e1bf Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 7 Jun 2024 09:32:20 +0530 Subject: [PATCH] Fix --- web/apps/accounts/src/services/passkey.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/apps/accounts/src/services/passkey.ts b/web/apps/accounts/src/services/passkey.ts index aadf000a00..d6f5c4bf67 100644 --- a/web/apps/accounts/src/services/passkey.ts +++ b/web/apps/accounts/src/services/passkey.ts @@ -85,7 +85,7 @@ export const getPasskeyRegistrationOptions = async () => { * the whitelisted URLs that we allow redirecting to on success. */ export const isWhitelistedRedirect = (redirectURL: URL) => - (isDevBuild && redirectURL.host.endsWith("localhost")) || + (isDevBuild && redirectURL.hostname.endsWith("localhost")) || redirectURL.host.endsWith(".ente.io") || redirectURL.host.endsWith(".ente.sh") || redirectURL.protocol == "ente:" ||