Dart 2.x

UpdateSelf

Updates the current user object in Kuzzle.

Arguments

Copied to clipboard!
Future<KuzzleUser> updateSelf(Map<String, dynamic> body)
Argument Type Description
body
Map<String, dynamic>
Map representing the user content

Return

A User representing the current user logged with the SDK.

Usage

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