From fb7b5446d1e40ea43da09bd7ec85a0addaee3d4a Mon Sep 17 00:00:00 2001 From: Nate Smith Date: Tue, 28 Apr 2020 20:19:52 -0500 Subject: [PATCH] Update command/root.go Co-Authored-By: Corey Johnson --- command/root.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command/root.go b/command/root.go index 8c0cbd046..fcb3dca2b 100644 --- a/command/root.go +++ b/command/root.go @@ -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")