logout method

Future<void> logout()

Send logout request to kuzzle with jwt.

Implementation

Future<void> logout() async => kuzzle
        .query(KuzzleRequest(
      controller: name,
      action: 'logout',
    ))
        .then((response) {
      kuzzle.jwt = null;
    });