This tag should be used for questions related to the LocalAuthentication framework provided in iOS and macOS.
Questions tagged [localauthentication]
87 questions
1
vote
0 answers
How to wait for LAContext.evaluatePolicy result in a simple terminal app
First and foremost I am very new to swift, and it is not my primary language. I have some difficulty to understand the concurrent constructs, and some are not yet available (until macOs 12 is released).
So I'd like the command line app to use the…

bric3
- 40,072
- 9
- 91
- 111
1
vote
1 answer
Expo Local Authentication Finger print sensor not working in IOS
I am using Expo Local Authentication finger print sensor in my 2 applications. Both these apps detecting finger print in android, but misbehaving in IOS. When I install both apps in IOS, the last installed IPA will detect the finger print sensor…

aff_cue
- 73
- 5
1
vote
1 answer
Is it OK to use device passcode to authenticate user to an iOS app?
I'm adding user authentication support to my app. The only requirement is that the user should be the owner of the device (the app doesn't access remote service and doesn't need to access keys in keychain).
I have read LocalAuthentication framework…

rayx
- 1,329
- 10
- 23
1
vote
1 answer
Biometric Authentication evaluation with swiftUI
I've been able to get a rudimentary version of Face / Touch ID working inside my app. However, I want to add better fallbacks and error handling.
So I've been researching how to do it. There are fantastic resources like this:
Face ID evaluation…

Tom Wicks
- 785
- 2
- 11
- 28
1
vote
1 answer
LocalAuthentication not recognizing FaceId is supported
I'm using the expo-local-authentication module for biometrics authentication. I want to authenticate users with FaceId on my android device.
As per the LocalAuthentication documentation, I'm using the…

Meet Siraja
- 173
- 1
- 10
1
vote
1 answer
touchID implementation error cancelled by user
How to resolve the TouchId error: Domain=com.apple.LocalAuthentication Code=-2 "Canceled by user."
I tried to add local context again:
let myContext = LAContext()
let myLocalizedReasonString = "Please use your last login for Inspyrus Supplier…
user2476796
1
vote
0 answers
Local authentication along with oauth2
I am trying to implement alternative strategy to onboard and authenticate users who do not want to use social sign-in and want to use username and password based authentication.
My authentication server is written in node.js with passport.js and…

Technoshaft
- 679
- 6
- 18
1
vote
1 answer
How to use touchIDAuthenticationAllowableReuseDuration
I am authenticating a user via LAContext when an app is launching or when will enter foreground. If a device was locked then the user will be asked twice to authorize himself. To avoid that behavior, I set…

Blazej SLEBODA
- 8,936
- 7
- 53
- 93
1
vote
2 answers
How can I observe when user authenticates the app with biometrics?
Simply in code I use it like this:
let context = LAContext()
if context.canEvaluatePolicy(.deviceOwnerAuthentication, error: nil)
context.evaluatePolicy(.deviceOwnerAuthentication, localizedReason: "jjj") { success, error in
…

Bartłomiej Semańczyk
- 59,234
- 49
- 233
- 358
1
vote
1 answer
Is it possible to reset the Face ID permission alert for an app?
The first time you try to use Face ID for an app a system permission alert prompt is shown "Do you want to allow to use Face ID" (like Photos, Contacts etc permissions). However, there appears to be no way to reset this.
I've tried deleting the app…

mluisbrown
- 14,448
- 7
- 58
- 86
1
vote
1 answer
How to dismiss face id permission pop up?
We have added the face id description key in plist
NSFaceIDUsageDescription
This app requires Face ID permission to authenticate using Face recognition.
We are getting system pop up for accessing face id we want to dismiss that pop up.
Please…

Pratik
- 103
- 1
- 9
1
vote
2 answers
FaceID/TouchID success case keeps prompting for further authentication
I've implemented password/TouchID/FaceID on a view controller and when I hit the success case, I'd expect the prompt to stop firing but it just fires over and over again.
In my VC:
var context: LAContext!
func authenticateReturningUser() {
…

Zack Shapiro
- 6,648
- 17
- 83
- 151
1
vote
1 answer
'LABiometryType' is only available on iOS 11.0.1 or newer
Xcode 9.3 (beta) showing an error for enum LABiometryType, which was working fine with Xcode 9.2 with check available(iOS 11.0, *).
Here is error message:
'LABiometryType' is only available on iOS 11.0.1 or newer
Here is my existing code:
if…

Krunal
- 77,632
- 48
- 245
- 261
1
vote
0 answers
TouchID Authentication
I have an app written in Swift that uses LocalAuthentication to allow users to log-in to the app with TouchID or phone passcode.
I have set a notification observer to launch authentication block whenever app comes to Foreground so the user can…

Dusan Juranovic
- 157
- 2
- 12
1
vote
1 answer
iOS Local authentication fallback to passcode for older devices?
I have recently started using Local Authentication (LA) and it all works nicely on devices that support biometric authentication (touch id):
To allow the LA falling back to passcode when the user fails the first fingerprint scan I just pass the…

Jonas Rembratt
- 1,550
- 3
- 17
- 39