-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Bio Multi-protocol keys #157
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found some code snippets to review. 🕵🏻♂️
YubiKit/YubiKit/Connections/Shared/Sessions/MGMT/YKFManagementSession.h
Outdated
Show resolved
Hide resolved
// | ||
// YKFInvalidPinError.h | ||
// YubiKit | ||
// | ||
// Created by Jens Utbult on 2024-06-19. | ||
// Copyright © 2024 Yubico. All rights reserved. | ||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw in other files you update this to a different header, maybe you forgot here?
// | ||
// YKFInvalidPinError.m | ||
// YubiKit | ||
// | ||
// Created by Jens Utbult on 2024-06-19. | ||
// Copyright © 2024 Yubico. All rights reserved. | ||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This header is different than in other files.
int retries = [self getRetriesFromStatusCode:(int)error.code]; | ||
if (retries >= 0) { | ||
completion([YKFInvalidPinError invalidPinErrorWithRetries:retries]); | ||
return; | ||
} else { | ||
completion(error); | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review this part - if verification of the temporary PIN fails, the error.code will be 0x63C0, so there is no need to get the retries.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.