SDK
SDK Dart Null Safety v3.x
2

GetCurrentUser #

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

Arguments #

Future<KuzzleUser> getCurrentUser()

Return #

A User representing the current user logged with the SDK.

Usage #

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