login_async


Description:

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

Warning: login_async is deprecated since 1.26.

Asynchronously get authorization to install/remove snaps.

Note:

See login_sync for more information.

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.

callback

a TaskReadyCallback to call when the request is satisfied.

user_data

the data to pass to callback function.