You've already forked FIDO2_Bridge
mirror of
https://github.com/token2/FIDO2_Bridge.git
synced 2026-03-13 11:12:26 -07:00
Use CM permission for non-preview credential management
Closes #4 Closes #5
This commit is contained in:
@@ -504,7 +504,10 @@ class MainActivity : AppCompatActivity() {
|
||||
}
|
||||
|
||||
resultText.text = getString(R.string.verifying_pin)
|
||||
val authenticated = withContext(Dispatchers.IO) { protocol.getPinToken(pin) }
|
||||
val authenticated = withContext(Dispatchers.IO) {
|
||||
if (usePreviewCommand) protocol.getPinToken(pin)
|
||||
else protocol.getPinToken(pin, PinProtocol.PERMISSION_CM)
|
||||
}
|
||||
if (!authenticated) {
|
||||
if (isNfcDisconnected()) {
|
||||
showNfcReconnectDialog()
|
||||
|
||||
Reference in New Issue
Block a user