gh-auth: add refresh examples (#5306)
This commit is contained in:
@@ -22,3 +22,11 @@
|
|||||||
- Login with a specific GitHub Enterprise Server:
|
- Login with a specific GitHub Enterprise Server:
|
||||||
|
|
||||||
`gh auth login --hostname {{github.example.com}}`
|
`gh auth login --hostname {{github.example.com}}`
|
||||||
|
|
||||||
|
- Refresh the session to ensure authentication credentials have the correct minimum scopes (removes additional scopes requested previously):
|
||||||
|
|
||||||
|
`gh auth refresh`
|
||||||
|
|
||||||
|
- Expand the permission scopes:
|
||||||
|
|
||||||
|
`gh auth refresh --scopes {{write:org,read:public_key}}`
|
||||||
|
Reference in New Issue
Block a user