buildLOGIUpdateSessionKey static method

Command buildLOGIUpdateSessionKey(
  1. String? token
)

Implementation

static Command buildLOGIUpdateSessionKey(String? token) {
  final hasCallback =
      SendbirdSdk().getInternal().eventManager.getSessionHandler() != null;

  return Command(
    cmd: CommandString.login,
    payload: {
      if (token != null) 'token': token,
      'expiring_session': hasCallback,
    },
  );
}