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

Method Exchange

coderd/userauth.go:778–783  ·  view source on GitHub ↗
(ctx context.Context, code string, opts ...oauth2.AuthCodeOption)

Source from the content-addressed store, hash-verified

776}
777
778func (c *GithubOAuth2Config) Exchange(ctx context.Context, code string, opts ...oauth2.AuthCodeOption) (*oauth2.Token, error) {
779 if !c.DeviceFlowEnabled {
780 return c.OAuth2Config.Exchange(ctx, code, opts...)
781 }
782 return c.ExchangeDeviceCode(ctx, code)
783}
784
785func (c *GithubOAuth2Config) AuthCodeURL(state string, opts ...oauth2.AuthCodeOption) string {
786 if !c.DeviceFlowEnabled {

Callers

nothing calls this directly

Calls 2

ExchangeDeviceCodeMethod · 0.80
ExchangeMethod · 0.65

Tested by

no test coverage detected