Skip to content

Commit 9a204c4

Browse files
committed
Add HTTP client context message
The message is present for the other two methods of retrieving the token, and applies to this one too. Signed-off-by: Levi Harrison <[email protected]>
1 parent 6b3c2da commit 9a204c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clientcredentials/clientcredentials.go

+3
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ func (c *Config) Client(ctx context.Context) *http.Client {
7171
// automatically refreshing it as necessary using the provided context and the
7272
// client ID and client secret.
7373
//
74+
// The provided context optionally controls which HTTP client
75+
// is returned. See the oauth2.HTTPClient variable.
76+
//
7477
// Most users will use Config.Client instead.
7578
func (c *Config) TokenSource(ctx context.Context) oauth2.TokenSource {
7679
source := &tokenSource{

0 commit comments

Comments
 (0)