Login will set user, git protocol, and auth token for the given hostname. If the encrypt option is specified it will first try to store the auth token in encrypted storage and will fall back to the general insecure configuration.
(hostname, username, token, gitProtocol string, secureStorage bool)
| 281 | // If the encrypt option is specified it will first try to store the auth token |
| 282 | // in encrypted storage and will fall back to the general insecure configuration. |
| 283 | Login(hostname, username, token, gitProtocol string, secureStorage bool) (insecureStorageUsed bool, err error) |
| 284 | |
| 285 | // LoginRefreshable stores a refreshable credential for the given user, sets the git protocol, and marks the user |
| 286 | // active for the hostname. Like Login it prefers encrypted storage and falls back to the insecure configuration, |
no outgoing calls