login_async


Description:


[ Version ( deprecated = true , deprecated_since = "1.34" , since = "1.0" ) ]
public async AuthData login_async (string username, string password, string? otp, Cancellable? cancellable) throws Error

Warning: login_async is deprecated since 1.34.

Asynchronously get authorization to install/remove snaps.

Note:

See login_sync for more information.

Parameters:

username

username to log in with.

password

password to log in with.

otp

response to one-time password challenge.

cancellable

a Cancellable or null.

callback

a TaskReadyCallback to call when the request is satisfied.

user_data

the data to pass to callback function.


Namespace: Snapd
Package: snapd-glib