[@nativescript/biometrics] Issue with verifyBiometric on iOS 18.3.1: Unable to Retrieve Stored Secret When Using pinFallback
@NathanWalker já está trabalhando nisso.
Desde 28/2/2025.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Description
While using iOS 18.3.1, I encountered an issue with the verifyBiometric function where enabling pinFallback prevents retrieval of the stored secret.
Code Example
this._BiometricAuth.verifyBiometric({
title: 'Authenticate',
message: 'Verify your identity to access your account.',
keyName: 'MyKeyName',
pinFallback: true, // Allow fallback to device passcode
ios: {
fetchSecret: true, // Retrieve stored secret upon successful authentication
customFallback: false, // Do not use custom fallback logic
},
});
Expected Behavior
- If Face ID fails, the system should prompt the user to enter their device passcode.
- After successful authentication (via Face ID or passcode), the stored secret should be retrievable.
Actual Behavior
- When
pinFallback: true, the stored secret is not accessible. - This behavior seems to be affected by
customFallback: false, even though I intend for it to behave similarly to Face ID authentication. - If
pinFallback: false, Face ID failures result in an error (SecItemCopyMatching), and the passcode prompt does not appear.
Question
Is there a way to retrieve the stored secret when pinFallback: true and customFallback: false? Am I missing a configuration that allows proper fallback behavior while still being able to fetch the stored secret?
Environment
- iOS Version: 18.3.1
- Biometric Authentication Library:
@nativescript/biometrics: "1.3.1" - Device Model: iPhone 15 Pro, iPhone 16
Any guidance or workarounds would be greatly appreciated!
- Linguagem predominante
- TypeScript
- Estrelas
- 206
- Forks
- 123
- Merge médio
- 2d 1h
- PRs com merge (30d)
- 1
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de NativeScript/plugins
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
NativeScript/plugins#680 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
NativeScript/plugins#671 ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
NativeScript/plugins#640 ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
NativeScript/plugins#668 ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
NativeScript/plugins#665 · 1 comentário ·
Todas as issues de NativeScript/plugins
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
0xMiden/bridge-portal#132 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
-
area:tools bug good first issue help wanted priority:P2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 90/100
TaewoooPark/Motifcode#14 ·
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
newrelic-experimental/preflight#793 · 1 comentário ·