Dart 2.x

Logout

Revokes the user's token & unsubscribes them from registered rooms.

Arguments

Copied to clipboard!
Future<void> logout()

Return

A Response object.

Usage

Copied to clipboard!
await kuzzle
  .auth
  .login(
    'local',
    {
      'username': 'foo',
      'password': 'bar'
    },
);
await kuzzle
  .auth
  .logout();