We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddb4d59 commit d7bad5bCopy full SHA for d7bad5b
1 file changed
internal/api/api.go
@@ -110,6 +110,9 @@ func buildTransport(opts ClientOpts, flags *Flags) http.RoundTripper {
110
transport = tp
111
}
112
113
+ // not we do not fail here if requireAccessToken is true, because that would
114
+ // mean returning an error on construction which we want to avoid for now
115
+ // TODO(burmudar): allow returning of an error upon client construction
116
if opts.AccessToken == "" && opts.OAuthToken != nil {
117
transport = oauth.NewTransport(transport, opts.OAuthToken)
118
0 commit comments