Skip to content

Commit 00c0fdd

Browse files
committed
docs: note the potential requirement for user:email scope
Some GitHub Enterprise setups may require the additional `user:email` scope. Signed-off-by: Lucas Magasweran <[email protected]>
1 parent ab14e27 commit 00c0fdd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@ file.
102102
#### Password-less login
103103

104104
If you have a complicated authorization requirement you can manually create a
105-
token file by pasting a GitHub token with only the `gist` permission into a
106-
file called `~/.gist`. You can create one from https://github.com/settings/tokens
105+
token file by pasting a GitHub token with `gist` scope (and maybe the `user:email`
106+
for GitHub Enterprise) into a file called `~/.gist`. You can create one from
107+
https://github.com/settings/tokens
107108

108109
This file should contain only the token (~40 hex characters), and to make it
109110
easier to edit, can optionally have a final newline (`\n` or `\r\n`).
@@ -156,7 +157,7 @@ If you need more advanced features you can also pass:
156157
* `:copy` to copy the resulting URL to the clipboard (default is false).
157158
* `:open` to open the resulting URL in a browser (default is false).
158159

159-
NOTE: The access_token must have the "gist" scope.
160+
NOTE: The access_token must have the `gist` scope and may also require the `user:email` scope.
160161

161162
‌If you want to upload multiple files in the same gist, you can:
162163

0 commit comments

Comments
 (0)