deviceSupportsPasskeys method

Future<bool> deviceSupportsPasskeys()

Checks if the device supports passkeys.

This method will check if the current device is capable of supporting passkey-based authentication.

Returns: A Future<bool> that will be true if the device supports passkeys, otherwise false.

Usage: This can be used to determine if passkey registration or login can be performed on the device before attempting to register or login the user with a passkey.

Throws: No specific exceptions are expected, but it's a good idea to handle any potential runtime errors related to platform-specific issues.

Implementation

Future<bool> deviceSupportsPasskeys() {
  return PassageFlutterPlatform.instance.deviceSupportsPasskeys();
}