From 2c0f09169b2b2d4bdab4a58aac69a1b61e927856 Mon Sep 17 00:00:00 2001 From: David Missmann Date: Sat, 6 Oct 2018 00:51:44 +0200 Subject: [PATCH] Added the hint for pressing return first --- gcal/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcal/client.go b/gcal/client.go index f352ea33..73bab1f9 100644 --- a/gcal/client.go +++ b/gcal/client.go @@ -142,7 +142,7 @@ func authenticate() { func getTokenFromWeb(config *oauth2.Config) *oauth2.Token { authURL := config.AuthCodeURL("state-token", oauth2.AccessTypeOffline) fmt.Printf("Go to the following link in your browser then type the "+ - "authorization code: \n%v\n", authURL) + "authorization code: \n%v (press 'return' before inserting the code)", authURL) var code string if _, err := fmt.Scan(&code); err != nil {