mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Added the hint for pressing return first
This commit is contained in:
parent
c76f49d037
commit
2c0f09169b
@ -142,7 +142,7 @@ func authenticate() {
|
|||||||
func getTokenFromWeb(config *oauth2.Config) *oauth2.Token {
|
func getTokenFromWeb(config *oauth2.Config) *oauth2.Token {
|
||||||
authURL := config.AuthCodeURL("state-token", oauth2.AccessTypeOffline)
|
authURL := config.AuthCodeURL("state-token", oauth2.AccessTypeOffline)
|
||||||
fmt.Printf("Go to the following link in your browser then type the "+
|
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
|
var code string
|
||||||
if _, err := fmt.Scan(&code); err != nil {
|
if _, err := fmt.Scan(&code); err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user