PublicKeyCredentialCreationOptions constructor

PublicKeyCredentialCreationOptions({
  1. required PublicKeyCredentialRpEntity rp,
  2. required PublicKeyCredentialUserEntity user,
  3. dynamic challenge,
  4. required Iterable<PublicKeyCredentialParameters> pubKeyCredParams,
  5. int? timeout,
  6. Iterable<PublicKeyCredentialDescriptor>? excludeCredentials,
  7. AuthenticatorSelectionCriteria? authenticatorSelection,
  8. String? attestation,
  9. AuthenticationExtensionsClientInputs? extensions,
})

Implementation

factory PublicKeyCredentialCreationOptions(
        {required PublicKeyCredentialRpEntity rp,
        required PublicKeyCredentialUserEntity user,
        dynamic challenge,
        required Iterable<PublicKeyCredentialParameters> pubKeyCredParams,
        int? timeout,
        Iterable<PublicKeyCredentialDescriptor>? excludeCredentials,
        AuthenticatorSelectionCriteria? authenticatorSelection,
        String? attestation,
        AuthenticationExtensionsClientInputs? extensions}) =>
    PublicKeyCredentialCreationOptions._(
        rp: rp,
        user: user,
        challenge: challenge ?? undefined,
        pubKeyCredParams: pubKeyCredParams,
        timeout: timeout ?? undefined,
        excludeCredentials: excludeCredentials ?? const [],
        authenticatorSelection: authenticatorSelection ?? undefined,
        attestation: attestation ?? 'none',
        extensions: extensions ?? undefined);