Credentials.UsernamePassword constructor

Credentials.UsernamePassword(
  1. String username,
  2. String password
)

Instantiates the credentials to log in using a username and a password. The username can be:

Implementation

factory Credentials.UsernamePassword(String username, String password) {
  return Credentials._internal({
    "username": username,
    "password": password,
    "kotlinType": "com.icure.cardinal.sdk.dart.auth.Credentials.UsernamePassword"
  });
}