Skip to content

Commit

Permalink
Context
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorcast-db committed May 13, 2024
1 parent b7c06af commit 0df16da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ func (c *Config) GetToken() (*oauth2.Token, error) {
if err != nil {
return nil, err
}
//ctx := c.refreshClient.InContextForOAuth2(c.refreshCtx)
if h, ok := c.credentialsProvider.(credentials.OAuthCredentialsProvider); ok {
return h.Token()
} else {
Expand Down
2 changes: 1 addition & 1 deletion httpclient/oauth_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (c *ApiClient) GetOAuthToken(authDetails string, token *oauth2.Token) (*cre
WithUrlEncodedData(data),
WithResponseUnmarshal(&response),
}
err := c.Do(context.Background(), http.MethodPost, path, opts...)
err := c.Do(c.InContextForOAuth2(context.Background()), http.MethodPost, path, opts...)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 0df16da

Please sign in to comment.