diff --git a/TangemSdk/TangemSdk/Common/Extensions/LAContext+.swift b/TangemSdk/TangemSdk/Common/Extensions/LAContext+.swift deleted file mode 100644 index 37d7f970b..000000000 --- a/TangemSdk/TangemSdk/Common/Extensions/LAContext+.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// LAContext+.swift -// TangemSdk -// -// Created by Alexander Osokin on 22.08.2022. -// Copyright © 2022 Tangem AG. All rights reserved. -// - -import Foundation -import LocalAuthentication - -extension LAContext { - static var `default`: LAContext { - let context = LAContext() - context.touchIDAuthenticationAllowableReuseDuration = 60 - return context - } -} diff --git a/TangemSdk/TangemSdk/Common/Services/Secure/BiometricsStorage.swift b/TangemSdk/TangemSdk/Common/Services/Secure/BiometricsStorage.swift index 080978e6c..76d517fcd 100644 --- a/TangemSdk/TangemSdk/Common/Services/Secure/BiometricsStorage.swift +++ b/TangemSdk/TangemSdk/Common/Services/Secure/BiometricsStorage.swift @@ -13,7 +13,7 @@ import LocalAuthentication /// Helper class for Keychain @available(iOS 13.0, *) public class BiometricsStorage { - private let context: LAContext = .default + private let context = LAContext() public init() {} diff --git a/TangemSdk/TangemSdk/Common/Services/Secure/BiometricsUtil.swift b/TangemSdk/TangemSdk/Common/Services/Secure/BiometricsUtil.swift index 70ea69641..ab8eabf9f 100644 --- a/TangemSdk/TangemSdk/Common/Services/Secure/BiometricsUtil.swift +++ b/TangemSdk/TangemSdk/Common/Services/Secure/BiometricsUtil.swift @@ -13,7 +13,7 @@ public final class BiometricsUtil { public static var isAvailable: Bool { var error: NSError? - let context = LAContext.default + let context = LAContext() let result = context.canEvaluatePolicy(authenticationPolicy, error: &error) if let error = error { @@ -31,7 +31,7 @@ public final class BiometricsUtil { /// - completion: Result @available(iOS 13.0, *) public static func requestAccess(localizedReason: String, completion: @escaping CompletionResult) { - let context = LAContext.default + let context = LAContext() DispatchQueue.global().async { context.evaluatePolicy(authenticationPolicy, localizedReason: localizedReason) { isSuccess, error in