extendSession method

  1. @override
Future<void> extendSession({
  1. required String topic,
})
override

Implementation

@override
Future<void> extendSession({
  required String topic,
}) async {
  _checkInitialized();
  await _isValidSessionTopic(topic);

  await core.pairing.sendRequest(
    topic,
    MethodConstants.WC_SESSION_EXTEND,
    {},
  );

  await _setSessionExpiry(
    topic,
    WalletConnectUtils.calculateExpiry(
      WalletConnectConstants.SEVEN_DAYS,
    ),
  );
}