Credentials.UsernamePassword constructor
Instantiates the credentials to log in using a username and a password.
The username
can be:
- User.id
- User.login
- User.email
The
password
is the user password.
Implementation
factory Credentials.UsernamePassword(String username, String password) {
return Credentials._internal({
"username": username,
"password": password,
"kotlinType": "com.icure.cardinal.sdk.dart.auth.Credentials.UsernamePassword"
});
}