From d6eb02483bc368a7a14bc5a9df4c1256ad4725ed Mon Sep 17 00:00:00 2001 From: Ldoppea Date: Mon, 7 Nov 2022 15:59:09 +0100 Subject: [PATCH] feat(cozy-device-helper): Add `biometry_authorisation_denied` interface On iOS with FaceID the biometry feature is guarded by OS level authorizations If the user reject the authorisation process, then the application won't be able to use FaceID anymore until the user re-authorizes it from the OS settings We want this information to be available from the settings cozy-app --- packages/cozy-device-helper/src/flagship.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/cozy-device-helper/src/flagship.ts b/packages/cozy-device-helper/src/flagship.ts index 659848918d..80730fc610 100644 --- a/packages/cozy-device-helper/src/flagship.ts +++ b/packages/cozy-device-helper/src/flagship.ts @@ -12,6 +12,7 @@ export type BiometryType = 'TouchID' | 'FaceID' | 'Biometrics' export interface FlagshipMetadata { biometry_available?: boolean + biometry_authorisation_denied?: boolean biometry_type?: BiometryType immersive?: boolean navbarHeight?: number