Merge pull request #3506 from schuelermine/fix/cargo-login-security

Remove direction to authenticate with `cargo login {API token}`
This commit is contained in:
Chris Krycho 2024-04-17 15:52:05 -06:00 committed by GitHub
commit 55599681b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -273,10 +273,11 @@ in via a GitHub account. (The GitHub account is currently a requirement, but
the site might support other ways of creating an account in the future.) Once
youre logged in, visit your account settings at
[https://crates.io/me/](https://crates.io/me/)<!-- ignore --> and retrieve your
API key. Then run the `cargo login` command with your API key, like this:
API key. Then run the `cargo login` command and paste your API key when prompted, like this:
```console
$ cargo login abcdefghijklmnopqrstuvwxyz012345
$ cargo login
abcdefghijklmnopqrstuvwxyz012345
```
This command will inform Cargo of your API token and store it locally in