SDK
SDK Dart v1.x
2

# hasCredentials

Checks if a user has credentials registered for the specified authentication strategy.


Copied to clipboard!
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

Copied to clipboard!
final result = await kuzzle.security.hasCredentials('local', 'john.doe');
/*
true
  */