Skip to content

Commit 30c459f

Browse files
committed
fix compile
1 parent c149f8f commit 30c459f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testutil/oauth2.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ import (
77
"time"
88

99
"golang.org/x/oauth2"
10+
11+
"github.com/coder/coder/v2/coderd/promoauth"
1012
)
1113

1214
type OAuth2Config struct {
1315
Token *oauth2.Token
1416
TokenSourceFunc OAuth2TokenSource
1517
}
1618

17-
func (*OAuth2Config) Do(_ context.Context, _ string, req *http.Request) (*http.Response, error) {
19+
func (*OAuth2Config) Do(_ context.Context, _ promoauth.Oauth2Source, req *http.Request) (*http.Response, error) {
1820
return http.DefaultClient.Do(req)
1921
}
2022

0 commit comments

Comments
 (0)