getCredentials method

Future<List<Credential>> getCredentials(
  1. AuthenticatorId authenticatorId
)

Returns all the credentials stored in the given virtual authenticator.

Implementation

Future<List<Credential>> getCredentials(
    AuthenticatorId authenticatorId) async {
  var result = await _client.send('WebAuthn.getCredentials', {
    'authenticatorId': authenticatorId,
  });
  return (result['credentials'] as List)
      .map((e) => Credential.fromJson(e as Map<String, dynamic>))
      .toList();
}