This project is licensed under the MIT License - see the LICENSE file for details. This repository is a port of detunized/lastpass-ruby client, _ := lastpass.NewClient(context.Background(), "user name", "master password", lastpass.WithOneTimePassword("123456"))Ĭlient.Add(context.Background(), account)Īccounts, _ := client.Accounts(context.Background())Ĭlient.Update(context.Background(), account)Ĭlient.Delete(context.Background(), account) two-factor authentication with one-time password as second factor: authenticate with LastPass serversĬlient, _ := lastpass.NewClient(context.Background(), "user name", "master password") See examples directory for more examples. Import: import "/ansd/lastpass-go"īelow, error handling is excluded for brevity. create / read / update / delete account in shared folder.trust: after first successful login with two-factor authentication, the second factor can be skipped.two-factor authentication with one-time password from LastPass Authenticator, Google Authenticator, Microsoft Authenticator, YubiKey, Duo Security, Sesame, etc.
two-factor authentication with out-of-band mechanism such as push notification to LastPass Authenticator or Duo Security.