This commit is contained in:
Manav Rathi 2024-06-07 09:32:20 +05:30
parent 8854807f09
commit 28ba02a2ef
No known key found for this signature in database

View File

@ -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:" ||