getCredential method

Future<Credential> getCredential(
  1. AuthenticatorId authenticatorId,
  2. String credentialId
)

Returns a single credential stored in the given virtual authenticator that matches the credential ID.

Implementation

Future<Credential> getCredential(
    AuthenticatorId authenticatorId, String credentialId) async {
  var result = await _client.send('WebAuthn.getCredential', {
    'authenticatorId': authenticatorId,
    'credentialId': credentialId,
  });
  return Credential.fromJson(result['credential'] as Map<String, dynamic>);
}