From c02fe4c629bcce7d5e53b0c75419665f894b952d Mon Sep 17 00:00:00 2001 From: Levi Harrison Date: Sat, 9 Oct 2021 18:15:28 -0400 Subject: [PATCH] clientcredentials: document how to use a custom HTTP client The message is present for the other two methods of retrieving the token, and applies to this one too. Signed-off-by: Levi Harrison --- clientcredentials/clientcredentials.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clientcredentials/clientcredentials.go b/clientcredentials/clientcredentials.go index 7a0b9ed10..d7ecf00e6 100644 --- a/clientcredentials/clientcredentials.go +++ b/clientcredentials/clientcredentials.go @@ -71,6 +71,9 @@ func (c *Config) Client(ctx context.Context) *http.Client { // automatically refreshing it as necessary using the provided context and the // client ID and client secret. // +// The provided context optionally controls which HTTP client +// is returned. See the oauth2.HTTPClient variable. +// // Most users will use Config.Client instead. func (c *Config) TokenSource(ctx context.Context) oauth2.TokenSource { source := &tokenSource{