PublicKeyCredentialRequestOptionsJSON constructor

PublicKeyCredentialRequestOptionsJSON({
  1. required String challenge,
  2. int? timeout,
  3. String? rpId,
  4. Iterable<PublicKeyCredentialDescriptorJSON>? allowCredentials,
  5. String? userVerification,
  6. AuthenticationExtensionsClientInputsJSON? extensions,
})

Implementation

factory PublicKeyCredentialRequestOptionsJSON(
        {required String challenge,
        int? timeout,
        String? rpId,
        Iterable<PublicKeyCredentialDescriptorJSON>? allowCredentials,
        String? userVerification,
        AuthenticationExtensionsClientInputsJSON? extensions}) =>
    PublicKeyCredentialRequestOptionsJSON._(
        challenge: challenge,
        timeout: timeout ?? undefined,
        rpId: rpId ?? undefined,
        allowCredentials: allowCredentials ?? const [],
        userVerification: userVerification ?? 'preferred',
        extensions: extensions ?? undefined);