AuthenticateRequestType (types/authenticate_request.dart)

flutter-passkeys · packages/passkeys/passkeys_platform_interface/lib/types/authenticate_request.dart · dart · BSD-3-Clause
auth

Data class for configuring passkey authentication requests with JSON support.

// Source: https://github.com/corbado/flutter-passkeys | License: BSD-3-Clause | Copyright 2023, Corbado GmbH
// Provided via justclaw.it.com; keep this notice with the code.
import 'dart:convert';

import 'package:passkeys_platform_interface/types/credential.dart';
import 'package:passkeys_platform_interface/types/mediation.dart';

/// The [AuthenticateRequestType] is used to create an authentication request
/// and send it to the platform.
class AuthenticateRequestType {
  /// Constructs a new instance.
  const AuthenticateRequestType({
    required this.relyingPartyId,
    required this.challenge,
    required this.mediation,
    required this.preferImmediatelyAvailableCredentials,
    this.timeout,
    this.userVerification,
    this.allowCredentials,
    this.prf,
    this.canBeSecuri

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key