Warning: login_async is deprecated since 1.34.
Asynchronously get authorization to install/remove snaps.
Use login2_async
See login_sync for more information.
| 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. |