webAuthnLogin method

Future<Map<String, dynamic>?> webAuthnLogin()

Login using WebAuthn/FIDO combination.

Implementation

Future<Map<String, dynamic>?> webAuthnLogin() async {
  final result = await _channel.invokeMapMethod<String, dynamic>(
    WebAuthnMethods.webAuthnLogin.name,
    {},
  ).catchError((error) {
    debugPrint('error');
    return throw GigyaResponse.fromJson(decodeError(error));
  }).timeout(getTimeout(Methods.sendRequest), onTimeout: () {
    debugPrint('A timeout that was defined in the request is reached');
    return timeoutError();
  });
  return result;
}