approve method

  1. @override
Future<ApproveResponse> approve({
  1. required int id,
  2. required Map<String, Namespace> namespaces,
  3. Map<String, String>? sessionProperties,
  4. String? relayProtocol,
})
override

Implementation

@override
Future<ApproveResponse> approve({
  required int id,
  required Map<String, Namespace> namespaces,
  Map<String, String>? sessionProperties,
  String? relayProtocol,
}) async {
  try {
    return await engine.approveSession(
      id: id,
      namespaces: namespaces,
      sessionProperties: sessionProperties,
      relayProtocol: relayProtocol,
    );
  } catch (e) {
    rethrow;
  }
}