PublicKeyCredentialCreationOptionsJSON constructor

PublicKeyCredentialCreationOptionsJSON({
  1. required PublicKeyCredentialRpEntity rp,
  2. required PublicKeyCredentialUserEntityJSON user,
  3. required String challenge,
  4. required Iterable<PublicKeyCredentialParameters> pubKeyCredParams,
  5. int? timeout,
  6. Iterable<PublicKeyCredentialDescriptorJSON>? excludeCredentials,
  7. AuthenticatorSelectionCriteria? authenticatorSelection,
  8. String? attestation,
  9. AuthenticationExtensionsClientInputsJSON? extensions,
})

Implementation

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