From 78992444bf0c1b3420e873d03f6a423c465e7df0 Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Fri, 24 Jul 2020 20:39:39 +0200 Subject: [PATCH] Support biometric changes in jslib (#571) --- src/app/services/services.module.ts | 2 +- src/services/webPlatformUtils.service.ts | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/app/services/services.module.ts b/src/app/services/services.module.ts index 4a30e9e045..49a216227d 100644 --- a/src/app/services/services.module.ts +++ b/src/app/services/services.module.ts @@ -118,7 +118,7 @@ const passwordGenerationService = new PasswordGenerationService(cryptoService, s const totpService = new TotpService(storageService, cryptoFunctionService); const containerService = new ContainerService(cryptoService); const authService = new AuthService(cryptoService, apiService, - userService, tokenService, appIdService, i18nService, platformUtilsService, messagingService); + userService, tokenService, appIdService, i18nService, platformUtilsService, messagingService, vaultTimeoutService); const exportService = new ExportService(folderService, cipherService, apiService); const importService = new ImportService(cipherService, folderService, apiService, i18nService, collectionService); const notificationsService = new NotificationsService(userService, syncService, appIdService, diff --git a/src/services/webPlatformUtils.service.ts b/src/services/webPlatformUtils.service.ts index 1efe660d6d..b4e34ada33 100644 --- a/src/services/webPlatformUtils.service.ts +++ b/src/services/webPlatformUtils.service.ts @@ -273,4 +273,12 @@ export class WebPlatformUtilsService implements PlatformUtilsService { readFromClipboard(options?: any): Promise { throw new Error('Cannot read from clipboard on web.'); } + + supportsBiometric() { + return Promise.resolve(false); + } + + authenticateBiometric() { + return Promise.resolve(false); + } }