MCPcopy Create free account
hub / github.com/openclaw/gogcli / tokenSourceClientOptions

Function tokenSourceClientOptions

internal/googleapi/client.go:210–217  ·  view source on GitHub ↗
(ctx context.Context, ts oauth2.TokenSource)

Source from the content-addressed store, hash-verified

208}
209
210func tokenSourceClientOptions(ctx context.Context, ts oauth2.TokenSource) []option.ClientOption {
211 return []option.ClientOption{option.WithHTTPClient(&http.Client{
212 Transport: readOnlyTransportFromContext(ctx, NewRetryTransport(&oauth2.Transport{
213 Source: ts,
214 Base: newBaseTransport(),
215 })),
216 })}
217}
218
219func optionsForAccountScopesWithStoredScopeCheck(
220 ctx context.Context,

Callers 2

Calls 3

NewRetryTransportFunction · 0.85
newBaseTransportFunction · 0.85

Tested by

no test coverage detected