diff --git a/jslib b/jslib index 6563dccf..d9d13bbf 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 6563dccf3b444c6f2ea97efe913eaccf9d9fd502 +Subproject commit d9d13bbf0e2b5b6d93459f3eca22c65c00543716 diff --git a/src/app/accounts/two-factor.component.ts b/src/app/accounts/two-factor.component.ts index 5fe0ed89..02b2c4d8 100644 --- a/src/app/accounts/two-factor.component.ts +++ b/src/app/accounts/two-factor.component.ts @@ -69,7 +69,11 @@ export class TwoFactorComponent extends BaseTwoFactorComponent { this.router.navigate([loginRedirect.route], { queryParams: loginRedirect.qParams }); await this.stateService.remove('loginRedirect'); } else { - this.router.navigate([this.successRoute]); + this.router.navigate([this.successRoute], { + queryParams: { + identifier: this.identifier, + }, + }); } } } diff --git a/src/app/services/services.module.ts b/src/app/services/services.module.ts index e8e22d06..092af73a 100644 --- a/src/app/services/services.module.ts +++ b/src/app/services/services.module.ts @@ -95,7 +95,7 @@ const secureStorageService: StorageServiceAbstraction = new MemoryStorageService const cryptoFunctionService: CryptoFunctionServiceAbstraction = new WebCryptoFunctionService(window, platformUtilsService); const cryptoService = new CryptoService(storageService, - platformUtilsService.isDev() ? storageService : secureStorageService, cryptoFunctionService); + platformUtilsService.isDev() ? storageService : secureStorageService, cryptoFunctionService, platformUtilsService); const tokenService = new TokenService(storageService); const appIdService = new AppIdService(storageService); const apiService = new ApiService(tokenService, platformUtilsService, diff --git a/src/services/webPlatformUtils.service.ts b/src/services/webPlatformUtils.service.ts index 0435725d..76e97258 100644 --- a/src/services/webPlatformUtils.service.ts +++ b/src/services/webPlatformUtils.service.ts @@ -281,4 +281,8 @@ export class WebPlatformUtilsService implements PlatformUtilsService { authenticateBiometric() { return Promise.resolve(false); } + + supportsSecureStorage() { + return true; + } }