SDK
SDK Dart v2.x
2

GetCurrentUser #

Returns informations about the user currently loggued with the SDK instance.

Arguments #

Copied to clipboard!
Future<KuzzleUser> getCurrentUser()

Return #

A User representing the current user logged with the SDK.

Usage #

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