AuthenticatorState constructor

AuthenticatorState({
  1. required bool backupEligible,
  2. required bool backupState,
  3. required int signCount,
})

Implementation

AuthenticatorState({
  required this.backupEligible,
  required this.backupState,
  required this.signCount,
}) {
  if (signCount < 0 ||
      signCount > 0xffffffff ||
      (backupState && !backupEligible)) {
    throw const PasskeyException(PasskeyErrorCode.invalidBinding);
  }
}