addCredential method

Future<void> addCredential(
  1. AuthenticatorId authenticatorId,
  2. Credential credential
)

Adds the credential to the specified authenticator.

Implementation

Future<void> addCredential(
    AuthenticatorId authenticatorId, Credential credential) async {
  await _client.send('WebAuthn.addCredential', {
    'authenticatorId': authenticatorId,
    'credential': credential,
  });
}