CreateMyCredentials #
Creates the current user's credentials for the specified strategy.
Arguments #
Future<Map<String, dynamic>> createMyCredentials(
String strategy, {
Map<String, dynamic> credentials,
})
Argument | Type | Description |
---|---|---|
strategy | String | Strategy to use |
credentials | Map<String, dynamic> | Map representing the credentials |
Return #
A ConcurrentHashMap representing the new credentials.
Usage #
await kuzzle
.auth
.login(
'local',
{
'username': 'foo',
'password': 'bar'
},
);
final result = await kuzzle
.auth
.createMyCredentials(
'other',
{
'username': 'foo2',
'password': 'bar2'
}
);
Edit this page on Github(opens new window)