Unlock Mobile app Using biometrics

This Document describes on how to unlock mobile app using Okta Classic Engine but I dont find the document for this topic on Okta Identity Engine.Can someone let us know the on how to unlock the mobile app using the OIE usage.

Hello,
Assuming you are using the latest version of the IDX sdk

Have you checked if the following would meet your needs:
https://okta.github.io/okta-mobile-swift/development/authfoundation/documentation/authfoundation/credential
https://okta.github.io/okta-mobile-swift/development/authfoundation/documentation/authfoundation/credential/security/

So when storing credentials you can do something like:

try Credential.store(token,
                     tags: ["displayName": "My User"],
                     security: [
                         .accessibility(.afterFirstUnlock),
                         .accessControl(.biometryAny),
                         .accessGroup("com.example.myApp.shared")
                     ])

If more advanced cases are needed custom TokenStorage and CredentialDataSources can be implemented.

1 Like

@erik I followed these exact steps and got the error cannotSave(code: -50) when setting up like specified. What types of issues would cause an error like this? I had previously revoked and removed my Credential’s default token. I also had biometrics setup in the app prior for the info.plist contains permissions to prompt the user for privacy sake.

1 Like

We are facing the same issue, have you found out the cause?