Warning: login_sync is deprecated since 1.34.
This call used to contact a D-Bus service to perform snapd authentication using Polkit.
Use login2_sync
This now just creates a Client and does the call directly.
username |
username to log in with. |
password |
password to log in with. |
otp |
response to one-time password challenge. |
cancellable |
a Cancellable or null. |
a AuthData or null on error. |