Skip to content

Commit

Permalink
clientcredentials: document how to use a custom HTTP client
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
LeviHarrison committed Nov 17, 2021
1 parent 6b3c2da commit c02fe4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clientcredentials/clientcredentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit c02fe4c

Please sign in to comment.