deleteAuth method

  1. @override
Future<void> deleteAuth(
  1. String credentialId,
  2. String rpId
)
override

Implementation

@override
Future<void> deleteAuth(String credentialId, String rpId) async {
  try {
    await _ensureScriptLoaded();
    final jsOptions = {'id': credentialId, 'rpId': rpId}.jsify();
    await _deleteAuth(jsOptions).toDart;
  } catch (e) {
    throw WebAuthnWebException(
      'deleteAuth',
      'Credential deletion failed. Check rpId domain match and that the credential exists.',
      e,
    );
  }
}