Skip to content

Commit ece2dcc

Browse files
πŸ“ Document new write-discussions oauth scope (#1286)
* πŸ“ Document new write-discussions oauth scope * Update docs/hub/spaces-oauth.md Co-authored-by: Omar Sanseviero <[email protected]> * Update docs/hub/oauth.md Co-authored-by: Omar Sanseviero <[email protected]> * πŸ“ --------- Co-authored-by: Omar Sanseviero <[email protected]>
1 parent 070425c commit ece2dcc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

β€Ždocs/hub/oauth.mdβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ The currently supported scopes are:
3535
- `write-repos`: Get write/read access to the user's personal repos.
3636
- `manage-repos`: Get full access to the user's personal repos. Also grants repo creation and deletion.
3737
- `inference-api`: Get access to the [Inference API](https://huggingface.co/docs/api-inference/index), you will be able to make inference requests on behalf of the user.
38+
- `write-discussions`: Open discussions and Pull Requests on behalf of the user as well as interact with discussions (including reactions, posting/editing comments, closing discussions, ...).
3839

3940
All other information is available in the [OpenID metadata](https://huggingface.co/.well-known/openid-configuration).
4041

β€Ždocs/hub/spaces-oauth.mdβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Those scopes are optional and can be added by setting `hf_oauth_scopes` in your
7676
- `write-repos`: Get write/read access to the user's personal repos.
7777
- `manage-repos`: Get full access to the user's personal repos. Also grants repo creation and deletion.
7878
- `inference-api`: Get access to the [Inference API](https://huggingface.co/docs/api-inference/index), you will be able to make inference requests on behalf of the user.
79+
- `write-discussions`: Open discussions and Pull Requests on behalf of the user as well as interact with discussions (including reactions, posting/editing comments, closing discussions, ...).
7980

8081
## Adding the button to your Space
8182

0 commit comments

Comments
Β (0)