Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.14 KB

File metadata and controls

51 lines (37 loc) · 1.14 KB
code type title description
true
page
createCredentials
Creates authentication credentials for a user

createCredentials

Creates authentication credentials for a user.


Future<Map<String, dynamic>> createCredentials(
      String strategy,
      String uid,
      Map<String, dynamic> credentials,
      {bool? waitForRefresh})

Property Type Description
strategy
string
Strategy to use
kuid
string
User kuid
credentials
object
New credentials
waitForRefresh
bool?

(null)
If set to true, Kuzzle will not respond until the credentials are indexed

credentials

The credentials to send. The expected properties depend on the target authentication strategy.

Example for the local strategy:

{
  'username': 'foo',
  'password': 'bar'
}

Return

An Map<String, dynamic> representing the new credentials.
The content depends on the authentication strategy.

Usage

<<< ./snippets/create-credentials.dart