mirror of
https://github.com/lux-tel/session-ios.git
synced 2026-10-30 20:38:32 +00:00
16 lines
626 B
Swift
16 lines
626 B
Swift
// Copyright © 2025 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
import Foundation
|
|
import LocalAuthentication
|
|
|
|
public enum ScreenLockErrors {
|
|
public static let defaultError: String = "authenticateNotAccessed".localized()
|
|
public static let errorMap: [LAError.Code: String] = [
|
|
.biometryNotAvailable: "lockAppEnablePasscode".localized(),
|
|
.biometryNotEnrolled: "lockAppEnablePasscode".localized(),
|
|
.biometryLockout: "authenticateFailedTooManyAttempts".localized(),
|
|
.authenticationFailed: "authenticateFailed".localized(),
|
|
.passcodeNotSet: "lockAppEnablePasscode".localized()
|
|
]
|
|
}
|