SDK
SDK Dart v1.x
2

# getCredentials

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


Copied to clipboard!
Future<Map<String, dynamic>> getCredentials(
      String strategy, String id)

Property Type Description
strategy
String
Strategy identifier
id
String
User kuid

# Return

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

# Usage

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