UpdateSelf #
Updates the current user object in Kuzzle.
Arguments #
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 #
await kuzzle
.auth
.login(
'local',
{
'username': 'foo',
'password': 'bar'
},
);
await kuzzle
.auth
.updateSelf(
{
'age': 42
}
);
Edit this page on Github(opens new window)