login2_sync
Description:
[ Version ( since = "1.26" ) ]
public UserInformation login2_sync (string email, string password, string? otp, Cancellable? cancellable = null) throws Error
public UserInformation login2_sync (string email, string password, string? otp, Cancellable? cancellable = null) throws Error
Log in to snapd and get authorization to install/remove snaps.
Parameters:
this |
a Client. |
email address to log in with. |
|
password |
password to log in with. |
otp |
response to one-time password challenge. |
cancellable |
a Cancellable or null. |
Returns:
a UserInformation or null on error. |