(ctx context.Context, code string, opts ...oauth2.AuthCodeOption)
| 776 | } |
| 777 | |
| 778 | func (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 | |
| 785 | func (c *GithubOAuth2Config) AuthCodeURL(state string, opts ...oauth2.AuthCodeOption) string { |
| 786 | if !c.DeviceFlowEnabled { |
nothing calls this directly
no test coverage detected