Skip to content

Commit

Permalink
IOS-2502 Removed reuseDuration from LAContext
Browse files Browse the repository at this point in the history
  • Loading branch information
megakoko committed Nov 10, 2022
1 parent 3b75358 commit 76b70ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
18 changes: 0 additions & 18 deletions TangemSdk/TangemSdk/Common/Extensions/LAContext+.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -31,7 +31,7 @@ public final class BiometricsUtil {
/// - completion: Result<Void, TangemSdkError>
@available(iOS 13.0, *)
public static func requestAccess(localizedReason: String, completion: @escaping CompletionResult<LAContext>) {
let context = LAContext.default
let context = LAContext()

DispatchQueue.global().async {
context.evaluatePolicy(authenticationPolicy, localizedReason: localizedReason) { isSuccess, error in
Expand Down

0 comments on commit 76b70ba

Please sign in to comment.