forked from Mirrors/oauth2
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:
parent
27daa780a8
commit
53c5ae1b31
10
oauth2.go
10
oauth2.go
|
@ -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"}
|
||||||
|
|
Loading…
Reference in New Issue