FaceId authentication from push action

Hello!

I am storing an auth token and other details in the device keychain. I want to implement actionable push notifications that makes a network call using the stored auth token.

The keychain settings I am using are a combination of:

  1. ksecattraccessiblewhenpasscodesetthisdeviceonly
  2. kSecAccessControlBiometryAny

Whenever I try to access the auth token that is stored, it throws me an error saying "User Interaction required"

Is there any way I can trigger a face-id check after clicking a push notification action so that I don't have to change the security settings? Or just use LAContext as soon as I receive a notification?

ok

FaceId authentication from push action
 
 
Q