addPasskey method

  1. @override
Future<Passkey> addPasskey(
  1. PasskeyCreationOptions? options
)
override

Implementation

@override
Future<Passkey> addPasskey(PasskeyCreationOptions? options) async {
  try {
    final jsonString = await methodChannel
        .invokeMethod<String>('addPasskey', {'options': options?.toJson()});
    return Passkey.fromJson(jsonString!);
  } catch (e) {
    throw PassageError.fromObject(object: e);
  }
}