hasCredentials #
Checks if a user has credentials registered for the specified authentication strategy.
Future<bool> hasCredentials(String strategy, String id)| Property | Type | Description |
|---|---|---|
strategy | String | Strategy identifier |
id | String | User kuid |
Return #
A boolean telling whether the user can log in using the provided authentication strategy.
Usage #
final result = await kuzzle.security.hasCredentials('local', 'john.doe');
/*
true
*/