forked from Mirrors/oauth2
oauth2: clarify docs on Exchange (nil context isn't ok)
Fixes golang/oauth2#100 Change-Id: I28afb4f02b817ffd0ff91fb10bfca5306d2c21c6 Reviewed-on: https://go-review.googlesource.com/7615 Reviewed-by: Burcu Dogan <jbd@google.com>
This commit is contained in:
parent
42633ef623
commit
c4932a9b59
|
@ -155,7 +155,7 @@ func (c *Config) PasswordCredentialsToken(ctx context.Context, username, passwor
|
||||||
// to the Redirect URI (the URL obtained from AuthCodeURL).
|
// to the Redirect URI (the URL obtained from AuthCodeURL).
|
||||||
//
|
//
|
||||||
// The HTTP client to use is derived from the context.
|
// The HTTP client to use is derived from the context.
|
||||||
// If nil, http.DefaultClient is used.
|
// If a client is not provided via the context, http.DefaultClient is used.
|
||||||
//
|
//
|
||||||
// The code will be in the *http.Request.FormValue("code"). Before
|
// The code will be in the *http.Request.FormValue("code"). Before
|
||||||
// calling Exchange, be sure to validate FormValue("state").
|
// calling Exchange, be sure to validate FormValue("state").
|
||||||
|
|
Loading…
Reference in New Issue