(url, userCode string)
| 257 | } |
| 258 | |
| 259 | func promptUserToGoToBrowser(url, userCode string) { |
| 260 | fmt.Println("Please visit the following Github URL in a browser and enter your user authentication code.") |
| 261 | fmt.Println() |
| 262 | fmt.Println(" URL:", url) |
| 263 | fmt.Println(" user authentication code:", userCode) |
| 264 | fmt.Println() |
| 265 | } |
| 266 | |
| 267 | func pollGithubForAuthorization(deviceCode string, intervalSec int64) (string, error) { |
| 268 | params := url.Values{} |