Skip to content

Commit

Permalink
add prompt for webauthn that does not support credMgmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dangfan committed Sep 8, 2024
1 parent 8fbd71e commit e8d66c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/controller/applets/webauthn.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ class WebAuthnController extends Controller {

_ctap = await Ctap2.create(CtapNfc());

// We do nothing if the device does not support clientPin
if (_ctap.info.options?['clientPin'] == null) {
// We do nothing if the device does not support credMgmt or clientPin
if (_ctap.info.options?['credMgmt'] != true || _ctap.info.options?['clientPin'] == null) {
Prompts.showPrompt(S.of(Get.context!).webauthnClientPinNotSupported, ContentThemeColor.danger);
return;
}
Expand Down

0 comments on commit e8d66c4

Please sign in to comment.