MCPcopy Create free account
hub / github.com/coder/coder / Exchange

Method Exchange

coderd/promoauth/oauth2.go:217–219  ·  view source on GitHub ↗
(ctx context.Context, code string, opts ...oauth2.AuthCodeOption)

Source from the content-addressed store, hash-verified

215}
216
217func (c *Config) Exchange(ctx context.Context, code string, opts ...oauth2.AuthCodeOption) (*oauth2.Token, error) {
218 return c.underlying.Exchange(c.wrapClient(ctx, SourceExchange), code, opts...)
219}
220
221func (c *Config) TokenSource(ctx context.Context, token *oauth2.Token) oauth2.TokenSource {
222 return c.underlying.TokenSource(c.wrapClient(ctx, SourceTokenSource), token)

Callers 1

TestInstrumentFunction · 0.95

Calls 2

wrapClientMethod · 0.95
ExchangeMethod · 0.65

Tested by 1

TestInstrumentFunction · 0.76