oauth2: Fix some redundant wording in the docs for AccessTypeOnline.

Change-Id: I124553bd38b229e409e152cf364d55c847b70ba4
Reviewed-on: https://go-review.googlesource.com/3950
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Aaron Jacobs 2015-02-05 14:49:57 +11:00 committed by Brad Fitzpatrick
parent 27daa780a8
commit 53c5ae1b31
1 changed files with 5 additions and 5 deletions

View File

@ -78,11 +78,11 @@ var (
// "access_type" field that gets sent in the URL returned by // "access_type" field that gets sent in the URL returned by
// AuthCodeURL. // AuthCodeURL.
// //
// Online (the default if neither is specified) is the default. // Online is the default if neither is specified. If your
// If your application needs to refresh access tokens when the // application needs to refresh access tokens when the user
// user is not present at the browser, then use offline. This // is not present at the browser, then use offline. This will
// will result in your application obtaining a refresh token // result in your application obtaining a refresh token the
// the first time your application exchanges an authorization // first time your application exchanges an authorization
// code for a user. // code for a user.
AccessTypeOnline AuthCodeOption = setParam{"access_type", "online"} AccessTypeOnline AuthCodeOption = setParam{"access_type", "online"}
AccessTypeOffline AuthCodeOption = setParam{"access_type", "offline"} AccessTypeOffline AuthCodeOption = setParam{"access_type", "offline"}