SDK
SDK Dart Null Safety v3.x
2

hasCredentials #

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


Future<bool> hasCredentials(String strategy, String id)

PropertyTypeDescription
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
  */