Update command/root.go
Co-Authored-By: Corey Johnson <probablycorey@gmail.com>
This commit is contained in:
parent
3aaa231cc5
commit
fb7b5446d1
1 changed files with 1 additions and 0 deletions
|
|
@ -151,6 +151,7 @@ var apiClientForContext = func(ctx context.Context) (*api.Client, error) {
|
|||
getAuthValue := func() string {
|
||||
return fmt.Sprintf("token %s", token)
|
||||
}
|
||||
|
||||
checkScopesFunc := func(appID string) error {
|
||||
if config.IsGitHubApp(appID) && utils.IsTerminal(os.Stdin) && utils.IsTerminal(os.Stderr) {
|
||||
newToken, loginHandle, err := config.AuthFlow("Notice: additional authorization required")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue