extendSession method

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

Implementation

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

  await _isValidSessionTopic(topic);

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

  await _setSessionExpiry(
    topic,
    ReownCoreUtils.calculateExpiry(
      ReownConstants.SEVEN_DAYS,
    ),
  );
}