Credentials.UsernameLongToken constructor

Credentials.UsernameLongToken(
  1. String username,
  2. String token
)

Instantiates the credentials to log in using a username and a long-lived token. The username can be:

Implementation

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