SDK
SDK Dart v2.x
2

validateCredentials #

Checks if the provided credentials are well-formed. Does not actually save credentials.


Future<bool> validateCredentials(
      String strategy, String id, Map<String, dynamic> credentials)

PropertyTypeDescription
strategy
String
Strategy identifier
id
String
User kuid
credentials
Map<String, dynamic>
New credentials

credentials #

The credentials to check. The expected properties depend on the target authentication strategy.

Example for the local strategy:

{
  'username': 'foo',
  'password': 'bar'
}

Return #

A |

bool
telling whether credentials are valid.