1 import type { APP_NAMES } from '@proton/shared/lib/constants';
2 import { APPS } from '@proton/shared/lib/constants';
3 import { getHasWebAuthnSupport } from '@proton/shared/lib/helpers/browser';
5 export const getHasFIDO2Support = (appName: APP_NAMES, hostname: string) => {
6 // Explicitly not testing the production domain for test domain support
7 return appName === APPS.PROTONACCOUNT && !hostname.endsWith('.onion') && getHasWebAuthnSupport();