Fail during conf init if auth or token URL is not valid.

This commit is contained in:
Burcu Dogan
2014-07-20 16:56:38 -07:00
parent 7935ece62b
commit 70bd497612
5 changed files with 35 additions and 41 deletions

View File

@@ -28,10 +28,7 @@ func Example_config() {
// Redirect user to consent page to ask for permission
// for the scopes specified above.
url, err := conf.AuthCodeURL("")
if err != nil {
log.Fatal(err)
}
url := conf.AuthCodeURL("")
fmt.Printf("Visit the URL for the auth dialog: %v", url)
// Use the exchange code that is handled by the redirect URL.