respondAuthRequest method

  1. @override
Future<void> respondAuthRequest({
  1. required int id,
  2. required String iss,
  3. CacaoSignature? signature,
  4. WalletConnectError? error,
})
override

Construct the Namespaces map for a session proposal. Uses the registered methods, events, and keys to build them. If the required namespaces is not satisfied, this function will throw a WalletConnectError. The optional namespaces are included if they exist in the registered information.

Implementation

@override
Future<void> respondAuthRequest({
  required int id,
  required String iss,
  CacaoSignature? signature,
  WalletConnectError? error,
}) {
  try {
    return authEngine.respondAuthRequest(
      id: id,
      iss: iss,
      signature: signature,
      error: error,
    );
  } catch (e) {
    rethrow;
  }
}