AuthController<K extends SessionStatusInfo?> constructor

AuthController<K extends SessionStatusInfo?>(
  1. RenovationConfig config, {
  2. K? sessionStatusInfo,
})

Listen to changes in sessionStatus and log them in console

Implementation

AuthController(RenovationConfig config, {K? sessionStatusInfo})
    : super(config) {
  sessionStatus.stream.where((session) => session != null).listen((session) {
    config.logger.i('Session Updated');
    config.logger.v(session!.toJson());
  });
}