question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SetItem prompts user for face ID

See original GitHub issue

Hello,

when I use setItem with the following configuration on IOS, I am prompted to authenticate with Face ID.

SInfo.setItem('password', pass, {
    kSecAccessControl: 'kSecAccessControlBiometryAny',
    touchID: true, //add this key
    showModal: true, //add this key
    // required (iOS) -  A fallback string for iOS
    kSecUseOperationPrompt: 'Use face-id to re-authenticate',
    strings: {
        // optional (Android) - You can personalize your prompt
        description: 'Re-authenticate',
        header: 'Use fingerprint to retrieve login info',
    },
})

The expected behaviour is no prompts when using setItem and prompts when using getItem.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
TheMatrixMastercommented, Jun 10, 2021

@Loxrie, unfortunately that seems to be the case. Instead of dwelling on this issue, I switched to a different package (react-native-keychain) that did the job for me.

0reactions
crzycodercommented, Dec 21, 2021

just call the Sinfo.getItem(key) with kSecAccessControl it will prompt the dialog box and after face recognition it will give you undefined then just set the value by calling SInfo.setItem(key, value) otherwise call getItem every time when the data is not undefined.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change Face ID and attention settings on iPhone
Set up Face ID with Accessibility Options · Go to Settings > Face ID & Passcode. · Position your face within the frame,...
Read more >
iOS | React-Native-Sensitive-Info - Mateus Andrade
When touchID is true you must pass kSecUseOperationPrompt to inform users why are you prompting TouchID or FaceID.
Read more >
Face Id Authentication for android in React-Native
i want android face_id authentication sdk for my react native android app login. I have used plugins which are available which support only ......
Read more >
Console Commands (Skyrim) - The Elder Scrolls Wiki - Fandom
Used to get the current quest stage for quest (use ShowQuestTargets for IDs). movetoqt <QuestID>, Move to quest target. resetquest <QuestID>, Completely resets ......
Read more >
Add iOS Touch ID support for Salesforce Authenticator
Salesforce Authenticator supports both iOS Touch and Face ID, but only prompts users when using Lightning Login. Check out the help and video...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found