1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 10:18:38 +00:00

Update login methods in package docs (#20561)

This commit is contained in:
KN4CK3R
2022-07-31 15:41:25 +02:00
committed by GitHub
parent 0b12abcfb5
commit 66b623c2aa
8 changed files with 11 additions and 5 deletions

View File

@@ -60,6 +60,8 @@ curl --user your_username:your_password_or_token \
https://gitea.example.com/api/packages/testuser/composer?version=1.0.3
```
If you are using 2FA or OAuth use a [personal access token]({{< relref "doc/developers/api-usage.en-us.md#authentication" >}}) instead of the password.
The server responds with the following HTTP Status codes.
| HTTP Status Code | Meaning |