authenticate method

Future<String> authenticate([
  1. String? transactionId
])

Authenticates with a passkey.

Prompts the user to select a passkey for authentication for your app. If a Passage transactionId is provided, this method will attempt to show only passkeys associated with that user account.

  • Parameters:

    • transactionId: (Optional) The Passage transaction id provided by your app's server.
  • Returns: A single-use "nonce" from Passage server to be exchanged for an authentication token on your app's server.

  • Throws: PassageFlexPasskeyError when passkey authorization fails.

Implementation

Future<String> authenticate([String? transactionId]) async {
  return PassageFlutterPlatform.instance.authenticate(transactionId);
}