deletePasskey method

  1. @override
Future<void> deletePasskey(
  1. String passkeyId
)
override

Implementation

@override
Future<void> deletePasskey(String passkeyId) async {
  try {
    final resultPromise = passage.getCurrentUser().deleteDevice(passkeyId);
    await js_util.promiseToFuture(resultPromise);
    return;
  } catch (e) {
    throw PassageError.fromObject(
        object: e, overrideCode: PassageErrorCode.passkeyError);
  }
}