Use same lock values as mobile clients
[ProtonMail-WebClient.git] / packages / shared / lib / webauthn / helper.ts
blobe043119e067fd5de9fc55375dec95d14b90182bc
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();
8 };