mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +00:00
50 lines
1.3 KiB
TypeScript
50 lines
1.3 KiB
TypeScript
type BiometricError = {
|
|
title: string;
|
|
description: string;
|
|
};
|
|
|
|
export type BiometricErrorTypes =
|
|
| "startDesktop"
|
|
| "desktopIntegrationDisabled"
|
|
| "not enabled"
|
|
| "not supported"
|
|
| "not unlocked"
|
|
| "invalidateEncryption"
|
|
| "userkey wrong"
|
|
| "wrongUserId";
|
|
|
|
export const BiometricErrors: Record<BiometricErrorTypes, BiometricError> = {
|
|
startDesktop: {
|
|
title: "startDesktopTitle",
|
|
description: "startDesktopDesc",
|
|
},
|
|
desktopIntegrationDisabled: {
|
|
title: "desktopIntegrationDisabledTitle",
|
|
description: "desktopIntegrationDisabledDesc",
|
|
},
|
|
"not enabled": {
|
|
title: "biometricsNotEnabledTitle",
|
|
description: "biometricsNotEnabledDesc",
|
|
},
|
|
"not supported": {
|
|
title: "biometricsNotSupportedTitle",
|
|
description: "biometricsNotSupportedDesc",
|
|
},
|
|
"not unlocked": {
|
|
title: "biometricsUnlockNotUnlockedTitle",
|
|
description: "biometricsUnlockNotUnlockedDesc",
|
|
},
|
|
invalidateEncryption: {
|
|
title: "nativeMessagingInvalidEncryptionTitle",
|
|
description: "nativeMessagingInvalidEncryptionDesc",
|
|
},
|
|
"userkey wrong": {
|
|
title: "nativeMessagingWrongUserKeyTitle",
|
|
description: "nativeMessagingWrongUserKeyDesc",
|
|
},
|
|
wrongUserId: {
|
|
title: "biometricsWrongUserTitle",
|
|
description: "biometricsWrongUserDesc",
|
|
},
|
|
};
|