mirror of
https://github.com/status-im/react-native-status-keycard.git
synced 2025-02-28 12:00:36 +00:00
fix verify pin
This commit is contained in:
parent
e520e4b8c2
commit
8fd1534891
@ -217,7 +217,7 @@ class SmartCard {
|
||||
}
|
||||
|
||||
func verifyPin(channel: CardChannel, pairingBase64: String, pin: String, resolve: RCTPromiseResolveBlock, reject: RCTPromiseRejectBlock) throws -> Void {
|
||||
let cmdSet = try securedCommandSet(channel: channel, pairingBase64: pairingBase64)
|
||||
let cmdSet = try authenticatedCommandSet(channel: channel, pairingBase64: pairingBase64, pin: pin)
|
||||
let status = try ApplicationStatus(cmdSet.getStatus(info: GetStatusP1.application.rawValue).checkOK().data);
|
||||
resolve(status.pinRetryCount)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user