SDK
SDK Dart v2.x
2

getCredentials #

Gets a user's credential information for the specified authentication strategy.


Future<Map<String, dynamic>> getCredentials(
      String strategy, String id)

PropertyTypeDescription
strategy
String
Strategy identifier
id
String
User kuid

Return #

A Map containing the credential information (depends on the authentication strategy).

Usage #

final result = await kuzzle.security.getCredentials('local', 'john.doe');
/*
{username: 'jdoe', kuid: 'john.doe'}
*/