MCPcopy Index your code
hub / github.com/coder/coder / TokenSource

Method TokenSource

coderd/promoauth/oauth2.go:221–223  ·  view source on GitHub ↗
(ctx context.Context, token *oauth2.Token)

Source from the content-addressed store, hash-verified

219}
220
221func (c *Config) TokenSource(ctx context.Context, token *oauth2.Token) oauth2.TokenSource {
222 return c.underlying.TokenSource(c.wrapClient(ctx, SourceTokenSource), token)
223}
224
225// InstrumentHTTPClient will always return a new http client. The new client will
226// match the one passed in, but will have an instrumented round tripper.

Callers 1

TestInstrumentFunction · 0.95

Calls 2

wrapClientMethod · 0.95
TokenSourceMethod · 0.65

Tested by 1

TestInstrumentFunction · 0.76