deviceSupportsPasskeys method

  1. @override
Future<bool> deviceSupportsPasskeys()
override

Implementation

@override
Future<bool> deviceSupportsPasskeys() async {
  try {
    final resultPromise = passage.getCredentialAvailable();
    final jsObject = await js_util.promiseToFuture(resultPromise);
    return jsObject.platform == true;
  } catch (e) {
    throw PassageError.fromObject(object: e);
  }
}