login_sync


Description:

[ Version ( deprecated = true , deprecated_since = "1.26" , since = "1.0" ) ]
public AuthData login_sync (string email, string password, string? otp, Cancellable? cancellable = null) throws Error

Warning: login_sync is deprecated since 1.26.

Log in to snapd and get authorization to install/remove snaps.

Note:

Parameters:

this

a Client.

email

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 AuthData or null on error.