Credentials.UsernameLongToken constructor
Instantiates the credentials to log in using a username and a long-lived token.
The username
can be:
- User.id
- User.login
- User.email
The
token
is a long-lived authentication token generated through the SDK or through the Cockpit.
Implementation
factory Credentials.UsernameLongToken(String username, String token) {
return Credentials._internal({
"username": username,
"token": token,
"kotlinType": "com.icure.cardinal.sdk.dart.auth.Credentials.UsernameLongToken"
});
}