PublicKeyCredentialCreationOptionsJSON constructor
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,
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);