Access type and approval prompt should be set at URL generation.

This commit is contained in:
Burcu Dogan
2014-09-04 22:43:23 -07:00
parent cb029f4c1f
commit 97a89b3be5
5 changed files with 36 additions and 42 deletions

View File

@@ -28,7 +28,7 @@ func Example_config() {
// Redirect user to consent page to ask for permission
// for the scopes specified above.
url := conf.AuthCodeURL("")
url := conf.AuthCodeURL("state", "online", "auto")
fmt.Printf("Visit the URL for the auth dialog: %v", url)
// Use the authorization code that is pushed to the redirect URL.