activate method

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

Implementation

@override
Future<void> activate({required String topic}) async {
  _isInitialized();
  final expiry = calcExpiry(ttl: THIRTY_DAYS);
  await pairings.update(
    topic,
    (value) => value.copyWith(active: true, expiry: expiry),
  );
  core.expirer.set(topic, expiry);
}